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,
java.lang.String... args)
Initializes a DefaultHCIException with a reason and an argument list.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addCharacterData(java.lang.String cData)
Adds character data to the content element.
|
void |
addChild(java.lang.String tagName,
XMLMarshallable child)
Adds a child to the object, the
child representing
the marshallable object which must be added to the element. |
boolean |
equals(java.lang.Object obj) |
java.util.List<java.lang.String> |
getArgs()
Returns the arguments of this exception.
|
java.lang.String |
getMessage()
Returns the text message of this exception.
|
DefaultHCIException.ExceptionReason |
getReason()
Returns the
reason of this exception. |
int |
hashCode() |
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.
|
getOperandReferencepublic DefaultHCIException()
Note
Should only be used to be initialized using XML.
public DefaultHCIException(DefaultHCIException.ExceptionReason reason, java.lang.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 java.util.List<java.lang.String> getArgs()
null otherwisepublic DefaultHCIException.ExceptionReason getReason()
reason of this exception.reason of the exception if exists, null otherwisepublic java.lang.String getMessage()
getMessage in class java.lang.Throwablenull otherwisepublic final void setAttributes(XMLAttributes atts)
XMLMarshallableatts - The XML attributes of the current elementpublic final void addCharacterData(java.lang.String cData)
XMLMarshallablecData - The character data to be addedpublic final void addChild(java.lang.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 intopublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Object