be.SIRAPRISE.messages
Class ConstraintViolatedErrorMessageTypeV1_0

java.lang.Object
  extended by be.SIRAPRISE.messages.ServerMessageType
      extended by be.SIRAPRISE.messages.ConstraintViolatedErrorMessageType
          extended by be.SIRAPRISE.messages.ConstraintViolatedErrorMessageTypeV1_0

public final class ConstraintViolatedErrorMessageTypeV1_0
extends ConstraintViolatedErrorMessageType

ConstraintViolatedErrorMessageTypeV1_0 is V1_0 of the ConstraintViolatedErrorMessageType. This message has the following fields.

Zone Format Length Description
ERRORCODE INTEGER 8 The ERRORCODE identifying which constraint has been violated.
ERRORMESSAGE STRING   The error message explaining the detail of the constraint violation that occurred.

Since:
SIRA_PRISE 1.1
Author:
Erwin Smout

Field Summary
 
Fields inherited from class be.SIRAPRISE.messages.ConstraintViolatedErrorMessageType
MESSAGETYPEID
 
Method Summary
 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
 

Method Detail

message

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

Specified by:
message in class ConstraintViolatedErrorMessageType
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