public class Error extends ExtensibleElementWrapper
| Modifier and Type | Field and Description |
|---|---|
static javax.xml.namespace.QName |
CODE |
static javax.xml.namespace.QName |
ERROR |
static javax.xml.namespace.QName |
MESSAGE |
static java.lang.String |
NS |
| Constructor and Description |
|---|
Error(Element internal) |
Error(Factory factory,
javax.xml.namespace.QName qname) |
| Modifier and Type | Method and Description |
|---|---|
static Error |
create(Abdera abdera,
int code,
java.lang.String message)
Create a new Error object
|
static Error |
create(Abdera abdera,
int code,
java.lang.String message,
java.lang.Throwable t) |
static void |
create(StreamWriter sw,
int code,
java.lang.String message,
java.lang.Throwable t) |
int |
getCode()
The code should typically match the HTTP status code; however, certain
application scenarios may require the use of a different code
|
java.lang.String |
getMessage()
Human-readable, language-sensitive description of the error
|
Error |
setCode(int code)
The code should typically match the HTTP status code; however, certain
application scenarios may require the use of a different code
|
Error |
setMessage(java.lang.String message)
Human-readable, language-sensitive description of the error
|
void |
throwException()
Will throw a ProtocolException that wraps this element.
|
addExtension, addExtension, addExtension, addExtension, addExtension, addSimpleExtension, addSimpleExtension, getExtension, getExtension, getExtensions, getExtensions, getExtensions, getMustPreserveWhitespace, getSimpleExtension, getSimpleExtension, setMustPreserveWhitespaceaddComment, clone, complete, declareNS, discard, equals, getAttributes, getAttributeValue, getAttributeValue, getBaseUri, getDefaultWriterOptions, getDocument, getElements, getExtensionAttributes, getFactory, getFirstChild, getFirstChild, getInternal, getLanguage, getLanguageTag, getLocale, getNamespaces, getNextSibling, getNextSibling, getParentElement, getPreviousSibling, getPreviousSibling, getQName, getResolvedBaseUri, getText, hashCode, iterator, removeAttribute, removeAttribute, setAttributeValue, setAttributeValue, setBaseUri, setBaseUri, setLanguage, setParentElement, setText, setText, toString, writeTo, writeTo, writeTo, writeTo, writeTo, writeTo, writeTo, writeTo, writeTo, writeTo, writeTo, writeTodeclareNS, discard, getAttributes, getAttributeValue, getAttributeValue, getBaseUri, getDocument, getElements, getExtensionAttributes, getFirstChild, getFirstChild, getLanguage, getLanguageTag, getLocale, getNamespaces, getNextSibling, getNextSibling, getParentElement, getPreviousSibling, getPreviousSibling, getQName, getResolvedBaseUri, getText, removeAttribute, removeAttribute, setAttributeValue, setAttributeValue, setBaseUri, setBaseUri, setLanguage, setParentElement, setText, setTextpublic static final java.lang.String NS
public static final javax.xml.namespace.QName ERROR
public static final javax.xml.namespace.QName CODE
public static final javax.xml.namespace.QName MESSAGE
public Error(Element internal)
public Error(Factory factory, javax.xml.namespace.QName qname)
public int getCode()
public Error setCode(int code)
public java.lang.String getMessage()
public Error setMessage(java.lang.String message)
public void throwException()
public static Error create(Abdera abdera, int code, java.lang.String message)
public static Error create(Abdera abdera, int code, java.lang.String message, java.lang.Throwable t)
public static void create(StreamWriter sw, int code, java.lang.String message, java.lang.Throwable t)
Copyright © 2010 - 2019 Adobe. All Rights Reserved