be.SIRAPRISE.messages
Class ConstraintViolatedErrorMessageType

java.lang.Object
  extended by be.SIRAPRISE.messages.ServerMessageType
      extended by be.SIRAPRISE.messages.ConstraintViolatedErrorMessageType
Direct Known Subclasses:
ConstraintViolatedErrorMessageTypeV1_0

public abstract class ConstraintViolatedErrorMessageType
extends ServerMessageType

The ConstraintViolatedErrorMessageType is the type of message returned by a SIRA_PRISE server to a client when an assignment command carried out by/for that client has resulted in a constraint violation.

Author:
Erwin Smout

Field Summary
static int MESSAGETYPEID
          Comment for MESSAGETYPEID
 
Method Summary
abstract  ConstraintViolatedErrorMessage message(long errorcode, java.lang.String message)
          Factory method for getting a Message of this type holding the given violated-constraint data
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MESSAGETYPEID

public static final int MESSAGETYPEID
Comment for MESSAGETYPEID

See Also:
Constant Field Values
Method Detail

message

public abstract ConstraintViolatedErrorMessage message(long errorcode,
                                                       java.lang.String message)
Factory method for getting a Message of this type holding the given violated-constraint data

Parameters:
errorcode - The SIRA_PRISE identification of the constraint that was found violated
message - The (formatted) error message displayed by the server
Returns:
A ConstraintViolatedErrorMessage of the appropriate version reflecting the given errorcode and message