Package com.nfbsoftware.xml.exception
Class XmlDocumentCheckedException.Code
java.lang.Object
com.nfbsoftware.exception.NfbCheckedException.Code
com.nfbsoftware.xml.exception.XmlDocumentCheckedException.Code
- All Implemented Interfaces:
Serializable
- Enclosing class:
XmlDocumentCheckedException
Represents a
XmlDocumentCheckedException 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, XmlDocumentCheckedException.Code mappedCode, String message, int severity) The protected constructor is provided for subclasses to extend the base code class. -
Method Summary
Methods inherited from class com.nfbsoftware.exception.NfbCheckedException.Code
getCode, getMappedCode, getMessage, getSeverity, toString
-
Constructor Details
-
Code
protected Code(String code, XmlDocumentCheckedException.Code mappedCode, String message, int severity) 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 messageseverity- the severity
-