[ROOT] --> C++Client
The Server error class encapsulates the errors that can thrown to a client due to Server errors.
PCREServerError
PCREServerError
Narrow
Report
Report
Report
Report
Throw
Throw
Throw
Throw
PCREServerError ( int code ,
const char * text ) ;
Construct a Server error with the given code and text.
| code | The error code |
| text | The error text |
PCREServerError ( const char * text ) ;
Construct a Server error with the given text.
| text | The error text |
static PCREServerError * Narrow ( PCREError * error ) ;
Narrow the type of error, by casting a generic error into an server error
| error | The generic error object |
void Throw ( ) ;
static void Throw ( const char * text ,
. . . ) ;
Generate and throw a Server error to the client.
| text | The error description that is to be thrown with the exception |
static void Throw ( int code ,
const char * text ,
. . . ) ;
Generate and throw a Server error to the client.
| code | The error code that is to be thrown with the exception |
| text | The error description that is to be thrown with the exception |
static void Throw ( CORBA :: Exception & ex ) ;
Throw a CORBA exception to the client.
| ex | The CORBA exception that is to be thrown. |
void Report ( ) ;
Report a ServerError to the client and terminate.
static void Report ( const char * text ,
. . . ) ;
Generate and report a Server Error to the client.
| text | The text to use for the error report |
static void Report ( int code ,
const char * text ,
. . . ) ;
Generate and report a Server Error to the client.
| text | The text to use for the error report |
| code | The error code to use for the error report |
static void Report ( CORBA :: Exception & ex ) ;
Report a CORBA exception to the client.
| ex | The CORBA exception to throw. |