[ROOT] --> C++Client
A PCREAPIError is thrown to a client in response to an error making an API call.
PCREAPIError
PCREAPIError
Narrow
Report
Report
Report
Report
Throw
Throw
Throw
Throw
PCREAPIError ( int code ,
const char * text ) ;
Construct a PCREAPIError with the given code and text.
| code | The error code. |
| text | The error text. |
PCREAPIError ( const char * text ) ;
Construct a PCREAPIError with the given text.
| text | The error text. |
static PCREAPIError * Narrow ( PCREError * error ) ;
Provides a type-safe cast from a PCREError pointer to a PCREAPIError pointer.
| error | A pointer to a PCREError object. |
| If the object to which error points is a PCREAPIError object, then a PCREAPIError pointer to it is returned. Otherwise a NULL pointer is returned. |
void Report ( ) ;
Report the error condition with which this PCREAPIError is associated by calling the PCREAPIErrorMsg method of the client's console.
static void Report ( const char * text ,
. . . ) ;
Generate a PCREAPIError with the specified error text, and report it by calling the PCREAPIErrorMsg method of the client's console.
| text | The text to use for the error report. This string my contain printf-style format specifiers, in which case the arguments to be used in the formatted string must follow text. |
static void Report ( int code ,
const char * text ,
. . . ) ;
Generate a PCREAPIError with the specified error code and text, and report it by calling the PCREAPIErrorMsg method of the client's console.
| code | The error code to use for the error report. |
| text | The text to use for the error report. This string my contain printf-style format specifiers, in which case the arguments to be used in the formatted string must follow text. |
static void Report ( CORBA :: Exception & ex ) ;
Report a CORBA exception to the client by calling the PCREAPIErrorMsg method of the client's console.
| ex | The CORBA exception to report. |
void Throw ( ) ;
Throw this exception to the client.
static void Throw ( const char * text ,
. . . ) ;
Generate and throw an API error to the client with the specified error text.
| text | The error description that is to be thrown with the exception. This string may contain printf-style format specifiers, in which case the arguments to be formatted in the string must follow text. |
static void Throw ( int code ,
const char * text ,
. . . ) ;
Generate and throw an API error to the client with the specified error code and text.
| code | The error code that is to be thrown with the exception. |
| text | The error description that is to be thrown with the exception. This string may contain printf-style format specifiers, in which case the arguments to be formatted in the string must follow text. |
static void Throw ( CORBA :: Exception & ex ) ;
Throw a CORBA exception to the client.
| ex | The exception to throw. |