Impact Acquire SDK .NET
ExceptionFactory Class Reference

A factory class to raise Impact Acquire related exceptions. More...

Static Public Member Functions

static String getLastErrorString ()
 Returns the last error string that did occur inside the framework within the current thread.
 
static void raiseException (int errorCode)
 Raises an exception from an error code.
 
static void raiseException (int errorCode, int objectHandle)
 Raises an exception from an error code, a component handle and a string with additional information.
 
static void raiseException (TDMR_ERROR errorCode)
 Raises an exception from an error code.
 
static void raiseException (TDMR_ERROR errorCode, int objectHandle)
 Raises an exception from an error code and a component handle.
 
static void raiseException (TPROPHANDLING_ERROR errorCode)
 Raises an exception from an error code.
 
static void raiseException (TPROPHANDLING_ERROR errorCode, int objectHandle)
 Raises an exception from an error code and a component handle.
 

Detailed Description

A factory class to raise Impact Acquire related exceptions.

This class contains a collection of static member functions that are used inside the interface to raise the appropriate exception in case of an error

Member Function Documentation

◆ getLastErrorString()

static String getLastErrorString ( )
inlinestatic

Returns the last error string that did occur inside the framework within the current thread.

Returns
The last error string that did occur inside the framework within the current thread.

◆ raiseException() [1/6]

static void raiseException ( int errorCode)
inlinestatic

Raises an exception from an error code.

Parameters
[in]errorCodeThe error code

◆ raiseException() [2/6]

static void raiseException ( int errorCode,
int objectHandle )
inlinestatic

Raises an exception from an error code, a component handle and a string with additional information.

Parameters
[in]errorCodeThe error code
[in]objectHandleA handle to an object

◆ raiseException() [3/6]

static void raiseException ( TDMR_ERROR errorCode)
inlinestatic

Raises an exception from an error code.

Parameters
[in]errorCodeThe error code

◆ raiseException() [4/6]

static void raiseException ( TDMR_ERROR errorCode,
int objectHandle )
inlinestatic

Raises an exception from an error code and a component handle.

Parameters
[in]errorCodeThe error code
[in]objectHandleA handle to an object

◆ raiseException() [5/6]

static void raiseException ( TPROPHANDLING_ERROR errorCode)
inlinestatic

Raises an exception from an error code.

Parameters
[in]errorCodeThe error code

◆ raiseException() [6/6]

static void raiseException ( TPROPHANDLING_ERROR errorCode,
int objectHandle )
inlinestatic

Raises an exception from an error code and a component handle.

Parameters
[in]errorCodeThe error code
[in]objectHandleA handle to an object