[ROOT] --> C++Client

class PCREServerError
    inherited from public PCREServiceError

The Server error class encapsulates the errors that can thrown to a client due to Server errors.

Author:
Copyright (c) 2000 Dynalivery Corp., All Rights Reserved.

Version:
2.4.0

Source:
MobileApps\PCRE\CppClient\Include\servererror.h

Constructors Index

PCREServerError
Construct a Server error with the given code and text.
PCREServerError
Construct a Server error with the given text.


Methods Index

Narrow
Narrow the type of error, by casting a generic error into an server error
Report
Report a ServerError to the client and terminate.
Report
Generate and report a Server Error to the client.
Report
Generate and report a Server Error to the client.
Report
Report a CORBA exception to the client.
Throw
Throw
Generate and throw a Server error to the client.
Throw
Generate and throw a Server error to the client.
Throw
Throw a CORBA exception to the client.


Constructors

PCREServerError

 PCREServerError ( int code ,
                         const char * text ) ;

Construct a Server error with the given code and text.

Parameters:
code The error code
text The error text

PCREServerError

 PCREServerError ( const char * text ) ;

Construct a Server error with the given text.

Parameters:
text The error text

Methods

Narrow

 static PCREServerError * Narrow ( PCREError * error ) ;

Narrow the type of error, by casting a generic error into an server error

Parameters:
error The generic error object

Return:
A PCREServerError object

Throw

 void Throw ( ) ;

Throw

 static void Throw ( const char * text ,
                           . . . ) ;

Generate and throw a Server error to the client.

Parameters:
text The error description that is to be thrown with the exception

Throw

 static void Throw ( int code ,
                           const char * text ,
                           . . . ) ;

Generate and throw a Server error to the client.

Parameters:
code The error code that is to be thrown with the exception
text The error description that is to be thrown with the exception

Throw

 static void Throw ( CORBA :: Exception & ex ) ;

Throw a CORBA exception to the client.

Parameters:
ex The CORBA exception that is to be thrown.

Report

 void Report ( ) ;

Report a ServerError to the client and terminate.

Report

 static void Report ( const char * text ,
                            . . . ) ;

Generate and report a Server Error to the client.

Parameters:
text The text to use for the error report

Report

 static void Report ( int code ,
                            const char * text ,
                            . . . ) ;

Generate and report a Server Error to the client.

Parameters:
text The text to use for the error report
code The error code to use for the error report

Report

 static void Report ( CORBA :: Exception & ex ) ;

Report a CORBA exception to the client.

Parameters:
ex The CORBA exception to throw.

Copyright (c) 2000 Dynalivery Corp.