public abstract class DefaultHCIException extends OperationFailureException
| Modifier and Type | Class and Description |
|---|---|
static class |
DefaultHCIException.ExceptionReason
This class represents the reason of the exception; The reason has a code or a pretty name, a comprehensive message, and a list of arguments.
|
| Constructor and Description |
|---|
DefaultHCIException()
Initializes an empty DefaultHCIException; It is initialized without arguments.
|
DefaultHCIException(DefaultHCIException.ExceptionReason reason,
String... args)
Initializes a DefaultHCIException with a reason and an argument list.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addCharacterData(String cData)
Adds character data to the content element.
|
void |
addChild(String tagName,
XMLMarshallable child)
Adds a child to the object, the
child representing
the marshallable object which must be added to the element. |
List<String> |
getArgs()
Returns the arguments of this exception.
|
String |
getMessage()
Returns the text message of this exception.
|
DefaultHCIException.ExceptionReason |
getReason()
Returns the
reason of this exception. |
void |
marshal(XMLOutputter output)
Gives an XML representation of this object, including its children.
|
void |
setAttributes(XMLAttributes atts)
Sets the attributes of the XML representation of the element being
processed.
|
getOperandReferenceaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic DefaultHCIException()
Note
Should only be used to be initialized using XML.
public DefaultHCIException(DefaultHCIException.ExceptionReason reason, String... args)
reason - The reason of the exception. Is mandatory and cannot be null.args - The arguments of the reason. Is optional and can be null.
If specified, the argument count must be equals to the argument name count defined by the reason.public List<String> getArgs()
null otherwisepublic DefaultHCIException.ExceptionReason getReason()
reason of this exception.reason of the exception if exists, null otherwisepublic String getMessage()
getMessage in class Throwablenull otherwisepublic final void setAttributes(XMLAttributes atts)
XMLMarshallableatts - The XML attributes of the current elementpublic final void addCharacterData(String cData)
XMLMarshallablecData - The character data to be addedpublic final void addChild(String tagName, XMLMarshallable child)
XMLMarshallablechild representing
the marshallable object which must be added to the element.tagName - The name of tag for the childchild - The child to be addedpublic final void marshal(XMLOutputter output)
XMLMarshallableoutput - The XML output to marshal the object into