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
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.