|
SAP CC 1.0
API 4.2 (Core) |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
com.highdeal.hci.OperationFailureException
com.highdeal.pnr.hci.DefaultHCIException
public abstract class DefaultHCIException
This class must be extended by all the operation failure exception. It provides the way to have meanful reason about the exception like a pretty name, a description and a list of argument.
| Nested Class Summary | |
|---|---|
static class |
DefaultHCIException.ExceptionReason
This class is the reason of the exception. |
| Constructor Summary | |
|---|---|
DefaultHCIException()
Initialize an empty DefaultHCIException. |
|
DefaultHCIException(DefaultHCIException.ExceptionReason reason,
java.lang.String... args)
Initialize a DefaultHCIException with a reason and an argument list. |
|
| Method Summary | |
|---|---|
protected void |
_marshalAttributes(XMLOutputter output)
Should be overwritten if the extending exception has specific attributes to be marshalled. |
protected void |
_marshalChildren(XMLOutputter output)
Should be overwritten if the extending exception has specific children to be marshalled. |
protected void |
_setAttributes(XMLAttributes atts)
Should be overwritten if the extending exception expect specific attributes. |
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 objects, the child represents
the marshallable object to be added into the content tree. |
protected static java.util.Map<java.lang.String,DefaultHCIException.ExceptionReason> |
generateReasons(java.lang.Class<?> clazz,
java.lang.Class<?> reasonClazz)
Builds the reason map of all the reasons defined in the the specified clazz and of type reasonClazz. |
java.util.List<java.lang.String> |
getArgs()
Returns the arguments of this exception. |
java.lang.String |
getMessage()
Returns the message of this exception. |
DefaultHCIException.ExceptionReason |
getReason()
Returns the reason of this exception. |
protected abstract java.util.Map<java.lang.String,DefaultHCIException.ExceptionReason> |
getReasons()
Returns all the available reasons of the exception. |
protected abstract java.lang.String |
getTagName()
Returns the tag of the extending exception. |
void |
marshal(XMLOutputter output)
Gives an XML representation of this object, and of its children. |
void |
setAttributes(XMLAttributes atts)
Sets the attributes of the XML representation of the tag beeing processed. |
| Methods inherited from class com.highdeal.hci.OperationFailureException |
|---|
getOperandReference |
| Methods inherited from class java.lang.Throwable |
|---|
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultHCIException()
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.| Method Detail |
|---|
public java.util.List<java.lang.String> getArgs()
public DefaultHCIException.ExceptionReason getReason()
public java.lang.String getMessage()
getMessage in class java.lang.Throwablepublic final void setAttributes(XMLAttributes atts)
XMLMarshallable
atts - the XML attributes of the current tag.public final void addCharacterData(java.lang.String cData)
XMLMarshallable
cData - the character data to be added.
public final void addChild(java.lang.String tagName,
XMLMarshallable child)
XMLMarshallablechild represents
the marshallable object to be added into the content tree.
tagName - the name of tag for the child.child - the child to be added.public final void marshal(XMLOutputter output)
XMLMarshallable
output - the XML output to marshall the object into.protected abstract java.util.Map<java.lang.String,DefaultHCIException.ExceptionReason> getReasons()
protected abstract java.lang.String getTagName()
protected void _setAttributes(XMLAttributes atts)
atts - the attribute list of the xml format of the extending exception.protected void _marshalAttributes(XMLOutputter output)
output - the marshaller.protected void _marshalChildren(XMLOutputter output)
output - the marshaller
protected static final java.util.Map<java.lang.String,DefaultHCIException.ExceptionReason> generateReasons(java.lang.Class<?> clazz,
java.lang.Class<?> reasonClazz)
clazz - the class from which the reasons must be extracted.reasonClazz - the type of the reason to be extracted.
|
SAP CC 1.0
API 4.2 (Core) |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
SAP Convergent Charging 1.0 (build R4.2.1.35.0.0)
CONVERGENT CHARGING 4.2
(c) Copyright 2009 SAP AG. All rights reserved.