at.spardat.xma.exception
Class Codes

java.lang.Object
  extended byat.spardat.xma.exception.Codes

public class Codes
extends java.lang.Object

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


Field Summary
static int BASEPRC_CLIENT_TRANSPORT_ERROR
          Error from transport
static int BASERPC_CLIENT_EXTERNALIZE
          Cannot serialize data at client
static int BASERPC_CLIENT_LENGTH_MISMATCH
          Wrong length of returned data
static int BASERPC_CLIENT_READ_LENGTH
          Server returned less than 4 bytes
static int BASERPC_INTERNALIZE_RESPONSE
          Cannot deserialize reply from server
static int BASERPC_SERVER_ENDPOINTMETHODFAULT
          The server side end point method of the base rpc throws an exception
static int BASERPC_SERVER_ERROR
          Remaining errors that occur at the server side
static int BASERPC_SERVER_EXT_STREAM
          Error in serializing data that should be sent back to the client
static int BASERPC_SERVER_INTERNALIZE
          Data sent to the server cannot be deserialized
static int BASERPC_SERVER_LENGTH_MISMATCH
          Data sent to the server and header-length are different
static int BASERPC_SERVER_READ_LENGTH
          Client sent less than 4 bytes
static int CANNOT_CONSTRUCT_COMPONENT
          Component can not be created
static int CLIENT_INTERNALIZE_DELTAS
          RemoteCall, client cannot deserialize and apply deltas from server
static int CLIENT_INTERNALIZE_RESPONSE
          RemoteCall, client cannot deserialize RemoteResponse
static int CLIENT_PROCESS_SERVER_RESPONSE
          RemoteCall, client cannot process server response
static int CLIENT_READ_LENGTH
          RemoteCall, client cannot even read first 4 bytes of server response
static int CLIENT_RECURSIVE_RPC
          Thrown when a client calls a second RPC while the first is not finished yet
static int COMPONENT_PROPERTY_DATE_SETTING_EXCEPTION
          Exception at setting component property
static int COMPONENT_PROPERTY_SETTING_EXCEPTION
          Exception at setting component property
static int DIFFERENT_SERVER_VERSION_FOUND
          The application version differs between client and server
static int DS_CLIENT_INVALID_TABLE_SPEC
          TabularDataSourceClient: Invalid table spec in getTable
static int DS_CLIENT_LOAD_TABLE_FROM_CACHE
          TabularDataSourceClient:
static int DS_INVALID_SESSION
          client requests a datasource via tabular servlet but no session exists yet.
static int DS_INVALID_TABLE_SPEC
          specification of a data source is wrong
static int DS_MISSING_BUNDLE_ATTRIBUTE
          RessourceBundleProviderServer: Missing bundle=-attribute
static int DS_MISSING_REQUEST_PARAM
          missing parameter to the tablar servlet
static int DS_NO_TABLE_PROVIDER
          RessourceBundleProviderServer: no ITableProvider for a particular type
static int DS_PROVIDE_TABLE_RETURNS_NULL
          TabularDataSourceServer.provideTable returned null
static int DS_PROVIDE_TABLE_RETURNS_NULL_TABLE
          TabularDataSourceServer.provideTable returned a null table
static int DS_RSC_INVALID_LINE
          RessourceBundleProviderServer: Syntax error in line
static int DS_RSC_MISSING_HEADER
          RessourceBundleProviderServer: Line that defines columns missing
static int DS_SERVER_WRONG_PLUNGIN_CLASS
          TabularServletServer: The server side implementation class of ITabularDataSource does not extend TabularDataSourceServer.
static int EXT_PAGES_CLIENT
          RemoteCall, page deltas cannot be externalized
static int EXT_STREAM_CLIENT
          RemoteCall, upstream cannot be produced
static int EXT_STREAM_SERVER
          RPCServletServer, downstream cannot be produced
static int INCOMPATIBLE_TYPES
          Thrown in widget model classes if transfers between AtomicAttrVals and widget models are not possible due to incompatible type codes.
static int LENGTH_MISMATCH_AT_CLIENT
          RemoteCall, length mismatch in the stream returned by the server
static int LOGIN_DENIED
          The client login module denied the user login
static int LOGIN_DENIED_SERVER
          The server login module denied the user login
static int LOGIN_TECHNICAL_ERROR
          Some Execption was thrown in the client or server side login procedure.
static int MODULE
           
static int NOT_AV_TRANSFERRABLE
          Thrown when transfers between AtomicAttrVals and widget models is not possbible due to the class or properties of widget models.
static int OUT_OF_SYNC
          RPCServletServer, the client and the server state are out of sync
static int PERMISSION_DENIED
          Serverevent is not allowed for the user
static int PLUGIN_CANNOT_CONSTRUCT_OBJECT
          PluginManager cannot construct object with default constructor
static int READ_LENGTH_SERVER
          RPCServletServer, cannot read first 4 bytes from ServletInputStream (length information)
static int READ_SERVER
          RPCServletServer, cannot read ServletInputStream as indicated by length information
static int SERVER_COMPONENT_CREATE
          RPCServletServer, component cannot be created
static int SERVER_ERROR
          RemoteCall, the server has been contacted but returned an unknown error
static int SERVER_EXTERNALIZE_DELTAS
          RPCServletServer, cannot externalize page deltas to client
static int SERVER_INTERNALIZE_DELTAS
          RPCServletServer, cannot internalize page deltas from client
static int SERVER_INVALID_PAGE
          RPCServletServer, the target dispatch page cannot be found
static int SERVER_INVALID_SESSION
          RPCServletServer, the session does not exist at the server
static int SERVER_INVALID_SESSION_AUTOEXIT
          RPCServletServer, the session does not exist at the server with autoexit enabled
static int SERVER_METHOD_EXECUTE
          RPCServletServer, the target dispatch method has been executed but terminated with an exception that was not an BaseException.
static int SERVER_METHOD_INVOKE
          ComponentServer, event method cannot be invoked
static int SERVER_METHOD_NOT_FOUND
          RPCServletServer, the target dispatch method cannot be found
static int SERVER_READ_CALL_FROM_SERVLETINPUT
          RPCServletServer, cannot reconstruct RemoteCall from servlet input stream
static int SERVER_RUNTIME_ERROR
          RPCServletServer, exception in server xma runtime
static int SERVER_UNREACHABLE
          RemoteCall, the server could not be contacted
static int SERVER_UNREACHABLE_AUTOEXIT
          RemoteCall, the server could not be contacted with autoexit enabled
static int WINREUSE_STARTUP
          Error in winReuse: An application with this winReuse ID and url is already started
 
Constructor Summary
Codes()
           
 
Method Summary
static java.lang.String getText(int code)
          Returns the localized text for a particular code.
 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

MODULE

public static final int MODULE
See Also:
Constant Field Values

EXT_PAGES_CLIENT

public static final int EXT_PAGES_CLIENT
RemoteCall, page deltas cannot be externalized

See Also:
Constant Field Values

EXT_STREAM_CLIENT

public static final int EXT_STREAM_CLIENT
RemoteCall, upstream cannot be produced

See Also:
Constant Field Values

SERVER_UNREACHABLE

public static final int SERVER_UNREACHABLE
RemoteCall, the server could not be contacted

See Also:
Constant Field Values

SERVER_ERROR

public static final int SERVER_ERROR
RemoteCall, the server has been contacted but returned an unknown error

See Also:
Constant Field Values

LENGTH_MISMATCH_AT_CLIENT

public static final int LENGTH_MISMATCH_AT_CLIENT
RemoteCall, length mismatch in the stream returned by the server

See Also:
Constant Field Values

SERVER_RUNTIME_ERROR

public static final int SERVER_RUNTIME_ERROR
RPCServletServer, exception in server xma runtime

See Also:
Constant Field Values

EXT_STREAM_SERVER

public static final int EXT_STREAM_SERVER
RPCServletServer, downstream cannot be produced

See Also:
Constant Field Values

READ_LENGTH_SERVER

public static final int READ_LENGTH_SERVER
RPCServletServer, cannot read first 4 bytes from ServletInputStream (length information)

See Also:
Constant Field Values

READ_SERVER

public static final int READ_SERVER
RPCServletServer, cannot read ServletInputStream as indicated by length information

See Also:
Constant Field Values

SERVER_READ_CALL_FROM_SERVLETINPUT

public static final int SERVER_READ_CALL_FROM_SERVLETINPUT
RPCServletServer, cannot reconstruct RemoteCall from servlet input stream

See Also:
Constant Field Values

SERVER_INVALID_SESSION

public static final int SERVER_INVALID_SESSION
RPCServletServer, the session does not exist at the server

See Also:
Constant Field Values

SERVER_COMPONENT_CREATE

public static final int SERVER_COMPONENT_CREATE
RPCServletServer, component cannot be created

See Also:
Constant Field Values

SERVER_INTERNALIZE_DELTAS

public static final int SERVER_INTERNALIZE_DELTAS
RPCServletServer, cannot internalize page deltas from client

See Also:
Constant Field Values

OUT_OF_SYNC

public static final int OUT_OF_SYNC
RPCServletServer, the client and the server state are out of sync

See Also:
Constant Field Values

SERVER_INVALID_PAGE

public static final int SERVER_INVALID_PAGE
RPCServletServer, the target dispatch page cannot be found

See Also:
Constant Field Values

SERVER_METHOD_NOT_FOUND

public static final int SERVER_METHOD_NOT_FOUND
RPCServletServer, the target dispatch method cannot be found

See Also:
Constant Field Values

SERVER_METHOD_EXECUTE

public static final int SERVER_METHOD_EXECUTE
RPCServletServer, the target dispatch method has been executed but terminated with an exception that was not an BaseException.

See Also:
Constant Field Values

SERVER_METHOD_INVOKE

public static final int SERVER_METHOD_INVOKE
ComponentServer, event method cannot be invoked

See Also:
Constant Field Values

SERVER_EXTERNALIZE_DELTAS

public static final int SERVER_EXTERNALIZE_DELTAS
RPCServletServer, cannot externalize page deltas to client

See Also:
Constant Field Values

CLIENT_INTERNALIZE_RESPONSE

public static final int CLIENT_INTERNALIZE_RESPONSE
RemoteCall, client cannot deserialize RemoteResponse

See Also:
Constant Field Values

CLIENT_INTERNALIZE_DELTAS

public static final int CLIENT_INTERNALIZE_DELTAS
RemoteCall, client cannot deserialize and apply deltas from server

See Also:
Constant Field Values

CLIENT_PROCESS_SERVER_RESPONSE

public static final int CLIENT_PROCESS_SERVER_RESPONSE
RemoteCall, client cannot process server response

See Also:
Constant Field Values

CLIENT_READ_LENGTH

public static final int CLIENT_READ_LENGTH
RemoteCall, client cannot even read first 4 bytes of server response

See Also:
Constant Field Values

INCOMPATIBLE_TYPES

public static final int INCOMPATIBLE_TYPES
Thrown in widget model classes if transfers between AtomicAttrVals and widget models are not possible due to incompatible type codes.

See Also:
Constant Field Values

NOT_AV_TRANSFERRABLE

public static final int NOT_AV_TRANSFERRABLE
Thrown when transfers between AtomicAttrVals and widget models is not possbible due to the class or properties of widget models.

See Also:
Constant Field Values

CLIENT_RECURSIVE_RPC

public static final int CLIENT_RECURSIVE_RPC
Thrown when a client calls a second RPC while the first is not finished yet

See Also:
Constant Field Values

SERVER_UNREACHABLE_AUTOEXIT

public static final int SERVER_UNREACHABLE_AUTOEXIT
RemoteCall, the server could not be contacted with autoexit enabled

See Also:
Constant Field Values

SERVER_INVALID_SESSION_AUTOEXIT

public static final int SERVER_INVALID_SESSION_AUTOEXIT
RPCServletServer, the session does not exist at the server with autoexit enabled

See Also:
Constant Field Values

DS_INVALID_SESSION

public static final int DS_INVALID_SESSION
client requests a datasource via tabular servlet but no session exists yet.

See Also:
Constant Field Values

DS_MISSING_REQUEST_PARAM

public static final int DS_MISSING_REQUEST_PARAM
missing parameter to the tablar servlet

See Also:
Constant Field Values

DS_INVALID_TABLE_SPEC

public static final int DS_INVALID_TABLE_SPEC
specification of a data source is wrong

See Also:
Constant Field Values

DS_PROVIDE_TABLE_RETURNS_NULL

public static final int DS_PROVIDE_TABLE_RETURNS_NULL
TabularDataSourceServer.provideTable returned null

See Also:
Constant Field Values

DS_PROVIDE_TABLE_RETURNS_NULL_TABLE

public static final int DS_PROVIDE_TABLE_RETURNS_NULL_TABLE
TabularDataSourceServer.provideTable returned a null table

See Also:
Constant Field Values

DS_MISSING_BUNDLE_ATTRIBUTE

public static final int DS_MISSING_BUNDLE_ATTRIBUTE
RessourceBundleProviderServer: Missing bundle=-attribute

See Also:
Constant Field Values

DS_RSC_INVALID_LINE

public static final int DS_RSC_INVALID_LINE
RessourceBundleProviderServer: Syntax error in line

See Also:
Constant Field Values

DS_NO_TABLE_PROVIDER

public static final int DS_NO_TABLE_PROVIDER
RessourceBundleProviderServer: no ITableProvider for a particular type

See Also:
Constant Field Values

DS_SERVER_WRONG_PLUNGIN_CLASS

public static final int DS_SERVER_WRONG_PLUNGIN_CLASS
TabularServletServer: The server side implementation class of ITabularDataSource does not extend TabularDataSourceServer.

See Also:
Constant Field Values

DS_RSC_MISSING_HEADER

public static final int DS_RSC_MISSING_HEADER
RessourceBundleProviderServer: Line that defines columns missing

See Also:
Constant Field Values

DS_CLIENT_INVALID_TABLE_SPEC

public static final int DS_CLIENT_INVALID_TABLE_SPEC
TabularDataSourceClient: Invalid table spec in getTable

See Also:
Constant Field Values

DS_CLIENT_LOAD_TABLE_FROM_CACHE

public static final int DS_CLIENT_LOAD_TABLE_FROM_CACHE
TabularDataSourceClient:

See Also:
Constant Field Values

LOGIN_DENIED

public static final int LOGIN_DENIED
The client login module denied the user login

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.

See Also:
Constant Field Values

PERMISSION_DENIED

public static final int PERMISSION_DENIED
Serverevent is not allowed for the user

See Also:
Constant Field Values

LOGIN_DENIED_SERVER

public static final int LOGIN_DENIED_SERVER
The server login module denied the user login

See Also:
Constant Field Values

PLUGIN_CANNOT_CONSTRUCT_OBJECT

public static final int PLUGIN_CANNOT_CONSTRUCT_OBJECT
PluginManager cannot construct object with default constructor

See Also:
Constant Field Values

CANNOT_CONSTRUCT_COMPONENT

public static final int CANNOT_CONSTRUCT_COMPONENT
Component can not be created

See Also:
Constant Field Values

DIFFERENT_SERVER_VERSION_FOUND

public static final int DIFFERENT_SERVER_VERSION_FOUND
The application version differs between client and server

See Also:
Constant Field Values

COMPONENT_PROPERTY_SETTING_EXCEPTION

public static final int COMPONENT_PROPERTY_SETTING_EXCEPTION
Exception at setting component property

See Also:
Constant Field Values

COMPONENT_PROPERTY_DATE_SETTING_EXCEPTION

public static final int COMPONENT_PROPERTY_DATE_SETTING_EXCEPTION
Exception at setting component property

See Also:
Constant Field Values

BASERPC_CLIENT_EXTERNALIZE

public static final int BASERPC_CLIENT_EXTERNALIZE
Cannot serialize data at client

See Also:
Constant Field Values

BASEPRC_CLIENT_TRANSPORT_ERROR

public static final int BASEPRC_CLIENT_TRANSPORT_ERROR
Error from transport

See Also:
Constant Field Values

BASERPC_CLIENT_READ_LENGTH

public static final int BASERPC_CLIENT_READ_LENGTH
Server returned less than 4 bytes

See Also:
Constant Field Values

BASERPC_CLIENT_LENGTH_MISMATCH

public static final int BASERPC_CLIENT_LENGTH_MISMATCH
Wrong length of returned data

See Also:
Constant Field Values

BASERPC_INTERNALIZE_RESPONSE

public static final int BASERPC_INTERNALIZE_RESPONSE
Cannot deserialize reply from server

See Also:
Constant Field Values

BASERPC_SERVER_READ_LENGTH

public static final int BASERPC_SERVER_READ_LENGTH
Client sent less than 4 bytes

See Also:
Constant Field Values

BASERPC_SERVER_LENGTH_MISMATCH

public static final int BASERPC_SERVER_LENGTH_MISMATCH
Data sent to the server and header-length are different

See Also:
Constant Field Values

BASERPC_SERVER_INTERNALIZE

public static final int BASERPC_SERVER_INTERNALIZE
Data sent to the server cannot be deserialized

See Also:
Constant Field Values

BASERPC_SERVER_ENDPOINTMETHODFAULT

public static final int BASERPC_SERVER_ENDPOINTMETHODFAULT
The server side end point method of the base rpc throws an exception

See Also:
Constant Field Values

BASERPC_SERVER_ERROR

public static final int BASERPC_SERVER_ERROR
Remaining errors that occur at the server side

See Also:
Constant Field Values

BASERPC_SERVER_EXT_STREAM

public static final int BASERPC_SERVER_EXT_STREAM
Error in serializing data that should be sent back to the client

See Also:
Constant Field Values

WINREUSE_STARTUP

public static final int WINREUSE_STARTUP
Error in winReuse: An application with this winReuse ID and url is already started

See Also:
Constant Field Values
Constructor Detail

Codes

public Codes()
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