Package com.nfbsoftware.xml.exception
Class XmlDocumentRuntimeException.Code
java.lang.Object
com.nfbsoftware.exception.NfbRuntimeException.Code
com.nfbsoftware.xml.exception.XmlDocumentRuntimeException.Code
- All Implemented Interfaces:
Serializable
- Enclosing class:
XmlDocumentRuntimeException
Represents a
XmlDocumentRuntimeException code. This class is used to
enforce the practice of using a code defined for this exception class.
Instances of the exception cannot be constructed without providing a valid
code from this exception's internal Codes interface.- Author:
- Brendan Clemenzi
- See Also:
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCode(String code, XmlDocumentRuntimeException.Code mappedCode, String message) The protected constructor is provided for subclasses to extend the base code class. -
Method Summary
Methods inherited from class com.nfbsoftware.exception.NfbRuntimeException.Code
getCode, getMappedCode, getMessage, toString
-
Constructor Details
-
Code
The protected constructor is provided for subclasses to extend the base code class. This constructor ensures that any subclass codes provide a valid mapped message.- Parameters:
code- the codemappedCode- the mapped Codemessage- the default message
-