ValidationException

public abstract class ValidationException extends SOAPException

Base class for message validation exceptions. All classes extending this class must be able to generate a SOAP message to indicate the error, but it is not necessary a SOAP Fault message (e.g. an ebXML message containing ErrorList element).

Author:Frankie Lam

Fields

ERROR_EBXML

public static final int ERROR_EBXML

The error represented by this exception is caused by an incorrectly packaged ebXML message.

ERROR_SOAP

public static final int ERROR_SOAP

The error represented by this exception is a SOAP Fault

ERROR_UNKNOWN

public static final int ERROR_UNKNOWN

The error represented by this exception is unknown.

errorCode

protected final String errorCode

Error code.

errorString

protected final String errorString

A string describing the error occurred.

errorType

protected final int errorType

The type of error represented by this exception object.

Constructors

ValidationException

public ValidationException(int errorType, String errorCode, String errorString)

Constructs a ValidationException object.

Parameters:
  • errorType – The type of error represented by this exception object.
  • errorCode – An error code in string to be processed by the applications.
  • errorString – A human-readable description string.

Methods

getSOAPMessage

public abstract SOAPMessage getSOAPMessage()

Get the SOAP message containing the error information.

Returns:SOAPMessage object containing the error information.