Package com.nfbsoftware.xml.exception
Class XmlDocumentCheckedException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.nfbsoftware.exception.NfbCheckedException
com.nfbsoftware.xml.exception.XmlDocumentCheckedException
- All Implemented Interfaces:
Serializable
The top level checked exception class for the XmlDocument project.
All checked exceptions encountered within the XmlDocument project must be
propagated as a
XmlDocumentCheckedException, using one of the codes
defined in this class's Codes interface.- Author:
- Brendan Clemenzi
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classRepresents aXmlDocumentCheckedExceptioncode.static interfaceContains all of the message codes defined for this exception type as well as any subclasses. -
Field Summary
Fields inherited from class com.nfbsoftware.exception.NfbCheckedException
mArgs, mCode, mDebugInformation, mRootCause, mSeverity, mStackTraceString, TO_STRING_MESSAGE_FORMAT -
Constructor Summary
ConstructorsConstructorDescriptionXmlDocumentCheckedException(XmlDocumentCheckedException.Code code, Object[] args, String debugInformation) Constructs aXmlDocumentCheckedExceptioninstance with the specified code, message arguments, debug information, and a severity equal to the severity of the code.XmlDocumentCheckedException(XmlDocumentCheckedException.Code code, Object[] args, String debugInformation, int severity) Constructs aXmlDocumentCheckedExceptioninstance with the specified code, message arguments, debug information and severity.XmlDocumentCheckedException(XmlDocumentCheckedException.Code code, Object[] args, String debugInformation, Throwable rootCause) Constructs aXmlDocumentCheckedExceptioninstance with the specified code, message arguments, debug information, root cause, and a severity equal to the severity of the code.XmlDocumentCheckedException(XmlDocumentCheckedException.Code code, Object[] args, String debugInformation, Throwable rootCause, int severity) Constructs aXmlDocumentCheckedExceptioninstance with the specified code, message arguments, debug information, root cause, and severity.XmlDocumentCheckedException(XmlDocumentCheckedException.Code code, Object arg, String debugInformation) Constructs aXmlDocumentCheckedExceptioninstance with the specified code, message argument, debug information and a severity equal to the severity of the code.XmlDocumentCheckedException(XmlDocumentCheckedException.Code code, Object arg, String debugInformation, int severity) Constructs aXmlDocumentCheckedExceptioninstance with the specified code, message argument, debug information, and severity.XmlDocumentCheckedException(XmlDocumentCheckedException.Code code, Object arg, String debugInformation, Throwable rootCause) Constructs aXmlDocumentCheckedExceptioninstance with the specified code, message argument, debug information, root cause, and a severity equal to the severity of the code.XmlDocumentCheckedException(XmlDocumentCheckedException.Code code, Object arg, String debugInformation, Throwable rootCause, int severity) Constructs aXmlDocumentCheckedExceptioninstance with the specified code, message argument, debug information, root cause, and severity.XmlDocumentCheckedException(XmlDocumentCheckedException.Code code, String debugInformation) Constructs aXmlDocumentCheckedExceptioninstance with the specified code, message argument, debug information and a severity equal to the severity of the code.XmlDocumentCheckedException(XmlDocumentCheckedException.Code code, String debugInformation, int severity) Constructs aXmlDocumentCheckedExceptioninstance with the specified code, message arguments, debug information and severity.XmlDocumentCheckedException(Object[] args, String debugInformation, Throwable rootCause, int severity) Constructs aXmlDocumentCheckedExceptioninstance.XmlDocumentCheckedException(Object arg, String debugInformation, Throwable rootCause) Constructs aXmlDocumentCheckedExceptioninstance.XmlDocumentCheckedException(String debugInformation, Throwable rootCause) Constructs aXmlDocumentCheckedExceptioninstance.XmlDocumentCheckedException(String debugInformation, Throwable rootCause, int severity) Constructs aXmlDocumentCheckedExceptioninstance. -
Method Summary
Methods inherited from class com.nfbsoftware.exception.NfbCheckedException
getArgs, getCode, getCode, getCodeName, getDebugInformation, getMessage, getRootCause, getSeverity, getSeverityAsString, getStackTraceString, isSevere, registerCode, toStringMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
Constructor Details
-
XmlDocumentCheckedException
Constructs aXmlDocumentCheckedExceptioninstance with the specified code, message argument, debug information and a severity equal to the severity of the code.This is a convenience method that is a convenience method that internally invokes
XmlDocumentCheckedException(String, Object[], String).- Parameters:
code- the exception codedebugInformation- debug information
-
XmlDocumentCheckedException
public XmlDocumentCheckedException(XmlDocumentCheckedException.Code code, String debugInformation, int severity) Constructs aXmlDocumentCheckedExceptioninstance with the specified code, message arguments, debug information and severity.- Parameters:
code- the exception codedebugInformation- debug informationseverity- the severity (based upon the constants defined in the SeveritySeverity class)
-
XmlDocumentCheckedException
public XmlDocumentCheckedException(XmlDocumentCheckedException.Code code, Object arg, String debugInformation) Constructs aXmlDocumentCheckedExceptioninstance with the specified code, message argument, debug information and a severity equal to the severity of the code.This is a convenience method that is a convenience method that internally invokes
XmlDocumentCheckedException(String, Object[], String).- Parameters:
code- the exception codearg- an argumentdebugInformation- debug information
-
XmlDocumentCheckedException
public XmlDocumentCheckedException(XmlDocumentCheckedException.Code code, Object[] args, String debugInformation) Constructs aXmlDocumentCheckedExceptioninstance with the specified code, message arguments, debug information, and a severity equal to the severity of the code.- Parameters:
code- the exception codeargs- an argument arraydebugInformation- debug information
-
XmlDocumentCheckedException
public XmlDocumentCheckedException(XmlDocumentCheckedException.Code code, Object arg, String debugInformation, int severity) Constructs aXmlDocumentCheckedExceptioninstance with the specified code, message argument, debug information, and severity.This is a convenience method that is a convenience method that internally invokes
XmlDocumentCheckedException(String, Object[], String, int).- Parameters:
code- the exception codearg- an argumentdebugInformation- debug informationseverity- the severity (based upon the constants defined in theSeverityclass)
-
XmlDocumentCheckedException
public XmlDocumentCheckedException(XmlDocumentCheckedException.Code code, Object[] args, String debugInformation, int severity) Constructs aXmlDocumentCheckedExceptioninstance with the specified code, message arguments, debug information and severity.- Parameters:
code- the exception codeargs- an argument arraydebugInformation- debug informationseverity- the severity (based upon the constants defined in the Severity class)
-
XmlDocumentCheckedException
public XmlDocumentCheckedException(XmlDocumentCheckedException.Code code, Object arg, String debugInformation, Throwable rootCause) Constructs aXmlDocumentCheckedExceptioninstance with the specified code, message argument, debug information, root cause, and a severity equal to the severity of the code.This is a convenience method that is a convenience method that internally invokes
XmlDocumentCheckedException(String, Object[], String, Throwable).- Parameters:
code- the exception codearg- an argumentdebugInformation- debug informationrootCause- the root cause
-
XmlDocumentCheckedException
public XmlDocumentCheckedException(XmlDocumentCheckedException.Code code, Object[] args, String debugInformation, Throwable rootCause) Constructs aXmlDocumentCheckedExceptioninstance with the specified code, message arguments, debug information, root cause, and a severity equal to the severity of the code.- Parameters:
code- the exception codeargs- an argument arraydebugInformation- debug informationrootCause- the root cause
-
XmlDocumentCheckedException
public XmlDocumentCheckedException(XmlDocumentCheckedException.Code code, Object arg, String debugInformation, Throwable rootCause, int severity) Constructs aXmlDocumentCheckedExceptioninstance with the specified code, message argument, debug information, root cause, and severity.This is a convenience method that is a convenience method that internally invokes
XmlDocumentCheckedException(String, Object[], String, Throwable, int).- Parameters:
code- the exception codearg- an argumentdebugInformation- debug informationrootCause- the root causeseverity- the severity (based upon the constants defined in theSeverityclass)
-
XmlDocumentCheckedException
public XmlDocumentCheckedException(XmlDocumentCheckedException.Code code, Object[] args, String debugInformation, Throwable rootCause, int severity) Constructs aXmlDocumentCheckedExceptioninstance with the specified code, message arguments, debug information, root cause, and severity.- Parameters:
code- the exception codeargs- an argument arraydebugInformation- debug informationrootCause- the root causeseverity- the severity (based upon the constants defined in theSeverityclass)
-
XmlDocumentCheckedException
Constructs aXmlDocumentCheckedExceptioninstance.- Parameters:
debugInformation- The text for debugging issues.rootCause- ex the exception to wrap
-
XmlDocumentCheckedException
Constructs aXmlDocumentCheckedExceptioninstance.- Parameters:
debugInformation- debug informationrootCause- ex the exception to wrapseverity- The severity of the exception.
-
XmlDocumentCheckedException
Constructs aXmlDocumentCheckedExceptioninstance.- Parameters:
arg- The object that was exceptionaldebugInformation- debug informationrootCause- ex the exception to wrap
-
XmlDocumentCheckedException
public XmlDocumentCheckedException(Object[] args, String debugInformation, Throwable rootCause, int severity) Constructs aXmlDocumentCheckedExceptioninstance.- Parameters:
args- The args.debugInformation- debug informationrootCause- ex the exception to wrapseverity- the level of the error.
-
-
Method Details
-
getDefaultCode
Gets the defaultCode.- Specified by:
getDefaultCodein classNfbCheckedException- Returns:
- Codes.GENERAL_ERROR
-