ErrorList¶
-
public class
ErrorList
extends HeaderElement¶ An ebXML
ErrorList
in the SOAP Header of aHeaderContainer
Author: cyng
Fields¶
ATTRIBUTE_CODE_CONTEXT¶
ATTRIBUTE_ERROR_CODE¶
ATTRIBUTE_HIGHEST_SEVERITY¶
ATTRIBUTE_LOCATION¶
ATTRIBUTE_SEVERITY¶
CODE_DELIVERY_FAILURE¶
CODE_INCONSISTENT¶
CODE_MIME_PROBLEM¶
CODE_NOT_SUPPORTED¶
CODE_OTHER_XML¶
CODE_SECURITY_FAILURE¶
CODE_TIME_TO_LIVE_EXPIRED¶
CODE_VALUE_NOT_RECOGNIZED¶
Constructors¶
ErrorList¶
-
ErrorList
(SOAPEnvelope soapEnvelope, String errorCode, String severity, String description)¶ Constructs an
ErrorList
with the given mandatory fields.Parameters: - soapEnvelope –
SOAPEnvelope
, the header of which theErrorList
is added. - errorCode – Error code value of the error.
- severity – Severity of the error.
- description – Description of the error.
Throws: - SOAPException –
- soapEnvelope –
ErrorList¶
-
ErrorList
(SOAPEnvelope soapEnvelope, String errorCode, String severity, String description, String lang)¶ Constructs an
ErrorList
with the given mandatory fields.Parameters: - soapEnvelope –
SOAPEnvelope
, the header of which theErrorList
is added. - errorCode – Error code value of the error.
- severity – Severity of the error.
- description – Description of the error.
- lang – Language of the description specified in ` RFC 1766 <http://www.ietf.org/rfc/rfc1766.txt>`_ and ISO639.
Throws: - SOAPException –
- soapEnvelope –
ErrorList¶
-
ErrorList
(SOAPEnvelope soapEnvelope, String errorCode, String severity, String description, String lang, String location)¶ Constructs an
ErrorList
with the given mandatory fields.Parameters: - soapEnvelope –
SOAPEnvelope
, the header of which theErrorList
is added. - errorCode – Error code value of the error.
- severity – Severity of the error.
- description – Description of the error.
- lang – Language of the description specified in ` RFC 1766 <http://www.ietf.org/rfc/rfc1766.txt>`_ and ISO639.
Throws: - SOAPException –
- soapEnvelope –
ErrorList¶
-
ErrorList
(SOAPEnvelope soapEnvelope, SOAPElement soapElement)¶ Constructs an
ErrorList
object by parsing the givenSOAPElement
object.Parameters: - soapEnvelope –
SOAPEnvelope
, the header of which theErrorList
is added. - soapElement –
SOAPElement
object to be read into theErrorList
object.
Throws: - SOAPException –
- soapEnvelope –
Methods¶
addError¶
addError¶
-
public void
addError
(String errorCode, String severity, String description, String lang)¶ Add an element to the error list.
Parameters: - errorCode – Error code value.
- severity – Severity of the error.
- description – Description of the error.
- lang – Language of the description specified in ` RFC 1766 <http://www.ietf.org/rfc/rfc1766.txt>`_ and ISO639.
Throws: - SOAPException –
addError¶
-
public void
addError
(String errorCode, String severity, String description, String lang, String location)¶ Add an element to the error list.
Parameters: - errorCode – Error code value.
- severity – Severity of the error.
- description – Description of the error.
- lang – Language of the description specified in ` RFC 1766 <http://www.ietf.org/rfc/rfc1766.txt>`_ and ISO639.
- location – Location of the message containing error.
Throws: - SOAPException –