be.SIRAPRISE.messages
Class NonSiraPriseErrorMessageTypeV1_1

java.lang.Object
  extended by be.SIRAPRISE.messages.ServerMessageType
      extended by be.SIRAPRISE.messages.NonSiraPriseErrorMessageType
          extended by be.SIRAPRISE.messages.NonSiraPriseErrorMessageTypeV1_1

public final class NonSiraPriseErrorMessageTypeV1_1
extends NonSiraPriseErrorMessageType

NonSiraPriseErrorMessageTypeV1_1 is V1_1 of the NonSiraPriseErrorMessageType.

This message has the following fields :

Zone Format Length Description
ERRORTYPE STRING   The name of the java Exception class that was encountered.
ERRORMESSAGE STRING   The result of the Java getMessage() method invoked on the Java exception object.
FATALINDICATOR INTEGER 1 Nonzero if the server took the initiative to roll back and end its part of the transaction. Zero if the transaction/run-unit is still active on the server.

Since:
SIRA_PRISE 1.4
Author:
Erwin Smout

Field Summary
 
Fields inherited from class be.SIRAPRISE.messages.NonSiraPriseErrorMessageType
MESSAGETYPEID
 
Method Summary
 NonSiraPriseErrorMessage message(java.lang.String exceptionClassName, java.lang.String exceptionMessage, boolean fatal)
          Factory method for getting a message of this version of the type holding the given java exception data
 
Methods inherited from class be.SIRAPRISE.messages.NonSiraPriseErrorMessageType
message
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

message

public NonSiraPriseErrorMessage message(java.lang.String exceptionClassName,
                                        java.lang.String exceptionMessage,
                                        boolean fatal)
Description copied from class: NonSiraPriseErrorMessageType
Factory method for getting a message of this version of the type holding the given java exception data

Specified by:
message in class NonSiraPriseErrorMessageType
Parameters:
exceptionClassName - The class name of the thrown non-sira-prise exception that caused this message to (have to be) sent
exceptionMessage - The exception message contained in the thrown exception object
fatal - Flag indicating whether the error was 'fatal', i.e. whether the server has aborted its side of the transaction as a consequence of the error
Returns:
A NonSiraPriseErrorMessage of the appropriate version reflecting the given exception class name and exception message