[ROOT] --> C++Client

class PCREGatewayError
    inherited from public PCREServiceError

The Gateway error class encapsulates the errors that can happen in a in the Gateway.

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

Version:
2.4.0

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

Constructors Index

PCREGatewayError
Construct a GatewayError with the given code and text.
PCREGatewayError
Construct a GatewayError with the given text.


Methods Index

Narrow
Narrow the type of error, by casting a generic error into a gateway error.
Report
Report a GatewayError in the client and terminate.
Report
Generate and report a GatewayError to the client.
Report
Generate and report a GatewayError to the client.
Report
Report a CORBA exception to the client.
Throw
Throw this error to a handler in the client.
Throw
Generate and throw a gateway error to the client.
Throw
Generate and throw a gateway error to the client.
Throw
Throw a CORBA exception to the client.


Constructors

PCREGatewayError

public PCREGatewayError ( int code ,
                          const char * text ) ;

Construct a GatewayError with the given code and text.

Parameters:
code The error code.
text The error text.

PCREGatewayError

public PCREGatewayError ( const char * text ) ;

Construct a GatewayError with the given text.

Parameters:
text The error text.

Methods

Narrow

 static PCREGatewayError * Narrow ( PCREError * error ) ;

Narrow the type of error, by casting a generic error into a gateway error.

Parameters:
error The generic error object.

Return:
A PCREGatewayError object.

Throw

 void Throw ( ) ;

Throw this error to a handler in the client.

Throw

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

Generate and throw a gateway 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 gateway error to the client.

Parameters:
code The error code to use.
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 exception to throw.

Report

 void Report ( ) ;

Report a GatewayError in the client and terminate.

Report

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

Generate and report a GatewayError 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 GatewayError 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 report.

Copyright (c) 2000 Dynalivery Corp.