at.spardat.xma.boot.exc
Class BRTCodes

java.lang.Object
  extended byat.spardat.xma.boot.exc.BRTCodes

public class BRTCodes
extends java.lang.Object

Defines error constants and a method to get a localized text for some of them.


Field Summary
static int APPLICATION_ERROR
          RemoteCall, the server could not be contacted same ID as boot runtime, but other module
static java.lang.String APPLICATION_ERROR_TITLE
          Resource IDs for general messages
static int COMPONENT_NOT_FOUND
          component not found in application
static java.lang.String ERROR_REASON
           
static int INVALID_CALL_XMA_URI
          component not found in application
static java.lang.String LOGHINT
           
static int LOGIN_TECHNICAL_ERROR
          Some Execption was thrown in the client or server side login procedure.
static int MODULE
           
static int PERMISSION_DENIED
          Serverevent is not allowed for the user same ID as boot runtime, but other module
static int SERVER_ERROR
          RemoteCall, the server has been contacted but returned an unknown error same ID as boot runtime, but other module
static int SERVER_UNREACHABLE
          RemoteCall, the server could not be contacted same ID as boot runtime, but other module
static int VERSION_UPDATE_ERROR
          The application version differs between client and server and the boot runtime was not able to update the application
 
Constructor Summary
BRTCodes()
           
 
Method Summary
static java.lang.String getText(int code)
          Returns the localized text for a particular code.
static java.lang.String getText(java.lang.String key)
           
 boolean isXMAExceptionCode(int code)
          Returns true if a provided BaseException code originates from this module, i.e., is defined above.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

APPLICATION_ERROR_TITLE

public static final java.lang.String APPLICATION_ERROR_TITLE
Resource IDs for general messages

See Also:
Constant Field Values

ERROR_REASON

public static final java.lang.String ERROR_REASON
See Also:
Constant Field Values

LOGHINT

public static final java.lang.String LOGHINT
See Also:
Constant Field Values

MODULE

public static final int MODULE
See Also:
Constant Field Values

APPLICATION_ERROR

public static final int APPLICATION_ERROR
RemoteCall, the server could not be contacted same ID as boot runtime, but other module

See Also:
Constant Field Values

SERVER_UNREACHABLE

public static final int SERVER_UNREACHABLE
RemoteCall, the server could not be contacted same ID as boot runtime, but other module

See Also:
Constant Field Values

SERVER_ERROR

public static final int SERVER_ERROR
RemoteCall, the server has been contacted but returned an unknown error same ID as boot runtime, but other module

See Also:
Constant Field Values

LOGIN_TECHNICAL_ERROR

public static final int LOGIN_TECHNICAL_ERROR
Some Execption was thrown in the client or server side login procedure. same ID as boot runtime, but other module

See Also:
Constant Field Values

PERMISSION_DENIED

public static final int PERMISSION_DENIED
Serverevent is not allowed for the user same ID as boot runtime, but other module

See Also:
Constant Field Values

VERSION_UPDATE_ERROR

public static final int VERSION_UPDATE_ERROR
The application version differs between client and server and the boot runtime was not able to update the application

See Also:
Constant Field Values

INVALID_CALL_XMA_URI

public static final int INVALID_CALL_XMA_URI
component not found in application

See Also:
Constant Field Values

COMPONENT_NOT_FOUND

public static final int COMPONENT_NOT_FOUND
component not found in application

See Also:
Constant Field Values
Constructor Detail

BRTCodes

public BRTCodes()
Method Detail

isXMAExceptionCode

public boolean isXMAExceptionCode(int code)
Returns true if a provided BaseException code originates from this module, i.e., is defined above.


getText

public static java.lang.String getText(int code)
Returns the localized text for a particular code. The resource bundle is expected to provide an entry for a key that equals the code minus the MODULE constant.

Parameters:
code - a code defined by one of the constants above
Returns:
a localized String never null

getText

public static java.lang.String getText(java.lang.String key)