ALMA Computing Group

Client Examples
[ACS C++ Examples Documentation]


Modules

group  Async Calls
group  Client
group  Client Alarm Thread
group  Client AmsSeq
group  Client Dynamic Component
group  Client Error Component
group  Client Fridge
group  Client Fridge Commands
group  Client Fridge Channel Event Consumer
group  Client Hello World
group  Client List Components
group  Client Wave

Classes

class  ClientErrorComponent
 This class demonstrates error handling when accessing a (remote) component. More...

Functions

 ClientErrorComponent::ClientErrorComponent (SimpleClient &client, char *errorComponent)
 
Exceptions:
ACSErrTypeCommon::CouldntAccessComponentExImpl 

virtual ClientErrorComponent::~ClientErrorComponent ()
void ClientErrorComponent::TestOk ()
 Here everything should go fine.
void ClientErrorComponent::TestReceiveRemoteException ()
 Example 1: Calls a method that throws an exception with an error trace..
void ClientErrorComponent::testTypeException ()
 Example 4: Calls a method that throws an exception with an error trace..
void ClientErrorComponent::testExceptionFromCompletion ()
 Example 3: Calls a method that throws an exception with an error trace..
void ClientErrorComponent::TestReceiveRemoteCompletion ()
 Example 2: Calls a method that returns a completion If the completion contains an error, then.
void ClientErrorComponent::testCompletionOnStack ()
 Example 6: Calls a method that returns a completion created on the stack instead of heap If the completion contains an error, then.
void ClientErrorComponent::testCompletionFromCompletion ()
 Example 6: Calls a method that returns a completion If the completion contains an error, then.
void ClientErrorComponent::TestReceiveCorbaSystemException ()
 Example 5: Calls a method that throws a CORBA system exception It:.
void ClientErrorComponent::testOutCompletion ()
 Example 7: Calls a method that returns a completion as an "out" parameter.

Function Documentation

ClientErrorComponent::ClientErrorComponent SimpleClient &  client,
char *  errorComponent
[inherited]
 

Exceptions:
ACSErrTypeCommon::CouldntAccessComponentExImpl 

Definition at line 238 of file acsexmplClientErrorComponent.cpp.

References ClientErrorComponent::client_m, ClientErrorComponent::errorComponent_m, and ClientErrorComponent::foo_m.

void ClientErrorComponent::testCompletionFromCompletion  )  [inherited]
 

Example 6: Calls a method that returns a completion If the completion contains an error, then.

  • Catches the exception,
  • prints it locally
  • sends it to the logging system
Exceptions:
ACSErrTypeCommon::CouldntAccessComponentExImpl 
Definition at line 674 of file acsexmplClientErrorComponent.cpp.

References ClientErrorComponent::foo_m.

Referenced by main().

void ClientErrorComponent::testCompletionOnStack  )  [inherited]
 

Example 6: Calls a method that returns a completion created on the stack instead of heap If the completion contains an error, then.

  • Catches the exception,
  • prints it locally
  • sends it to the logging system
Exceptions:
ACSErrTypeCommon::CouldntAccessComponentExImpl 
Definition at line 631 of file acsexmplClientErrorComponent.cpp.

References ClientErrorComponent::foo_m.

Referenced by main().

void ClientErrorComponent::testExceptionFromCompletion  )  [inherited]
 

Example 3: Calls a method that throws an exception with an error trace..

  • Catches the exception,
  • Adds context information
  • sends it to the logging system
Exceptions:
ACSErrTypeCommon::CouldntAccessComponentExImpl 
Definition at line 481 of file acsexmplClientErrorComponent.cpp.

References ClientErrorComponent::foo_m.

Referenced by main().

void ClientErrorComponent::TestOk  )  [inherited]
 

Here everything should go fine.

Exceptions:
ACSErrTypeCommon::CouldntAccessComponentExImpl 
Definition at line 283 of file acsexmplClientErrorComponent.cpp.

References ClientErrorComponent::foo_m.

Referenced by main().

void ClientErrorComponent::testOutCompletion  )  [inherited]
 

Example 7: Calls a method that returns a completion as an "out" parameter.

Exceptions:
ACSErrTypeCommon::CouldntAccessComponentExImpl 
Definition at line 768 of file acsexmplClientErrorComponent.cpp.

References ClientErrorComponent::foo_m.

Referenced by main().

void ClientErrorComponent::TestReceiveCorbaSystemException  )  [inherited]
 

Example 5: Calls a method that throws a CORBA system exception It:.

  • Catches the exception,
  • prints it locally
  • sends it to the logging system
Exceptions:
ACSErrTypeCommon::CouldntAccessComponentExImpl 
Definition at line 717 of file acsexmplClientErrorComponent.cpp.

References ClientErrorComponent::foo_m.

Referenced by main().

void ClientErrorComponent::TestReceiveRemoteCompletion  )  [inherited]
 

Example 2: Calls a method that returns a completion If the completion contains an error, then.

  • Catches the exception,
  • prints it locally
  • sends it to the logging system
Exceptions:
ACSErrTypeCommon::CouldntAccessComponentExImpl 
Definition at line 588 of file acsexmplClientErrorComponent.cpp.

References ClientErrorComponent::foo_m.

Referenced by main().

void ClientErrorComponent::TestReceiveRemoteException  )  [inherited]
 

Example 1: Calls a method that throws an exception with an error trace..

  • Catches the exception,
  • Adds context information
  • sends it to the logging system
Exceptions:
ACSErrTypeCommon::CouldntAccessComponentExImpl 
Definition at line 316 of file acsexmplClientErrorComponent.cpp.

References ClientErrorComponent::foo_m.

Referenced by main().

void ClientErrorComponent::testTypeException  )  [inherited]
 

Example 4: Calls a method that throws an exception with an error trace..

  • Catches the exception,
  • Adds context information
  • sends it to the logging system
Exceptions:
ACSErrTypeCommon::CouldntAccessComponentExImpl 
Definition at line 375 of file acsexmplClientErrorComponent.cpp.

References ClientErrorComponent::foo_m.

Referenced by main().

ClientErrorComponent::~ClientErrorComponent  )  [virtual, inherited]
 

Definition at line 263 of file acsexmplClientErrorComponent.cpp.

References ClientErrorComponent::client_m, and ClientErrorComponent::errorComponent_m.