com.dynalivery.harmoni
Class HarmoniGatewayError

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--com.dynalivery.harmoni.HarmoniError
                    |
                    +--com.dynalivery.harmoni.HarmoniServiceError
                          |
                          +--com.dynalivery.harmoni.HarmoniGatewayError

public class HarmoniGatewayError
extends HarmoniServiceError

See Also:
Serialized Form

Fields inherited from class com.dynalivery.harmoni.HarmoniError
errorCode, errorKind, errorText
 
Constructor Summary
HarmoniGatewayError(int code, java.lang.String text)
          Construct a HarmoniGatewayError with the given code and text.
HarmoniGatewayError(java.lang.String text)
          Construct a HarmoniGatewayError with the given text and default code.
 
Method Summary
 void Report()
          Report a HarmoniGatewayError in the client and terminate.
static void Report(int code, java.lang.String text)
          Generate and report a HarmoniGatewayError in the client.
static void Report(java.lang.String text)
          Generate and report a HarmoniGatewayError in the client.
 void Throw()
          Throw this error to a handler in the client.
static void Throw(java.lang.Exception error)
          Analyse a CORBA exception thrown by a Gateway API call and throw a corresponding HarmoniGatewayError.
static void Throw(int code, java.lang.String text)
          Generate and throw a Gateway error in the client.
static void Throw(java.lang.String text)
          Generate and throw a Gateway error in the client.
 
Methods inherited from class com.dynalivery.harmoni.HarmoniError
getCode, getKind, getText
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getMessage, printStackTrace, printStackTrace, printStackTrace, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HarmoniGatewayError

public HarmoniGatewayError(int code,
                           java.lang.String text)
Construct a HarmoniGatewayError with the given code and text.
Parameters:
code - The error code to use.
text - The error text to use.

HarmoniGatewayError

public HarmoniGatewayError(java.lang.String text)
Construct a HarmoniGatewayError with the given text and default code.
Parameters:
text - The error text to use.
Method Detail

Report

public void Report()
Report a HarmoniGatewayError in the client and terminate.
Overrides:
Report in class HarmoniServiceError

Report

public static void Report(int code,
                          java.lang.String text)
Generate and report a HarmoniGatewayError in the client.
Parameters:
text - The text to use for the error report
code - The error code to use for the errror report

Report

public static void Report(java.lang.String text)
Generate and report a HarmoniGatewayError in the client.
Parameters:
text - The text to use for the error report

Throw

public void Throw()
           throws HarmoniGatewayError
Throw this error to a handler in the client.
Overrides:
Throw in class HarmoniServiceError
Tags copied from class: HarmoniError
Throws:
HarmoniError - The error that is to be thrown.

Throw

public static void Throw(int code,
                         java.lang.String text)
                  throws HarmoniGatewayError
Generate and throw a Gateway error in the client.
Parameters:
text - The error description that is to be thrown with the exception
code - The error code that is to be thrown with the exception

Throw

public static void Throw(java.lang.Exception error)
                  throws HarmoniGatewayError
Analyse a CORBA exception thrown by a Gateway API call and throw a corresponding HarmoniGatewayError.
Parameters:
error - The CORBA exception.

Throw

public static void Throw(java.lang.String text)
                  throws HarmoniGatewayError
Generate and throw a Gateway error in the client.
Parameters:
text - The error description that is to be thrown with the exception