Package com.nfbsoftware.xml.exception
Class XmlDocumentRuntimeException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.nfbsoftware.exception.NfbRuntimeException
com.nfbsoftware.xml.exception.XmlDocumentRuntimeException
- All Implemented Interfaces:
Serializable
The top level NFB Software runtime exception class for the XmlDocument project.
All runtime exceptions encountered within the XmlDocument project must be
propagated as a
XmlDocumentRuntimeException, 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 aXmlDocumentRuntimeExceptioncode.static interfaceContains all ofthe message codes defined for this exception type as well as any subclasses. -
Field Summary
Fields inherited from class com.nfbsoftware.exception.NfbRuntimeException
mArgs, mCode, mDebugInformation, mRootCause, mSeverity, mStackTraceString, TO_STRING_MESSAGE_FORMAT -
Constructor Summary
ConstructorsConstructorDescriptionXmlDocumentRuntimeException(XmlDocumentRuntimeException.Code code, Object[] args, String debugInformation) Constructs aXmlDocumentRuntimeExceptioninstance with the specified code, message arguments, amd debug information.XmlDocumentRuntimeException(XmlDocumentRuntimeException.Code code, Object[] args, String debugInformation, Throwable rootCause) Constructs aXmlDocumentRuntimeExceptioninstance with the specified code, message arguments, debug information, and root cause.XmlDocumentRuntimeException(XmlDocumentRuntimeException.Code code, Object arg, String debugInformation) Constructs aXmlDocumentRuntimeExceptioninstance with the specified code, message argument, and debug information.XmlDocumentRuntimeException(XmlDocumentRuntimeException.Code code, Object arg, String debugInformation, Throwable rootCause) Constructs aXmlDocumentRuntimeExceptioninstance with the specified code, message argument, debug information, and root cause.XmlDocumentRuntimeException(XmlDocumentRuntimeException.Code code, String debugInformation) Constructs aXmlDocumentRuntimeExceptioninstance with the specified code, message argument, and debug information.XmlDocumentRuntimeException(Object arg, String debugInformation, Throwable rootCause) Constructs aXmlDocumentRuntimeExceptioninstance.XmlDocumentRuntimeException(String debugInformation, Throwable rootCause) Constructs aXmlDocumentRuntimeExceptioninstance. -
Method Summary
Methods inherited from class com.nfbsoftware.exception.NfbRuntimeException
getArgs, getCode, getCode, getCodeName, getDebugInformation, getMessage, getRootCause, getSeverity, getSeverityAsString, getStackTraceString, registerCode, toStringMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
Constructor Details
-
XmlDocumentRuntimeException
Constructs aXmlDocumentRuntimeExceptioninstance with the specified code, message argument, and debug information. If a log has been configured for this exception type, the constructor logs the exception.This is a convenience method that internally invokes
XmlDocumentRuntimeException(String, Object[], String).- Parameters:
code- the exception codedebugInformation- debug information
-
XmlDocumentRuntimeException
public XmlDocumentRuntimeException(XmlDocumentRuntimeException.Code code, Object arg, String debugInformation) Constructs aXmlDocumentRuntimeExceptioninstance with the specified code, message argument, and debug information. If a log has been configured for this exception type, the constructor logs the exception.This is a convenience method that is a convenience method that internally invokes
XmlDocumentRuntimeException(String, Object[], String).- Parameters:
code- the exception codearg- an argumentdebugInformation- debug information
-
XmlDocumentRuntimeException
public XmlDocumentRuntimeException(XmlDocumentRuntimeException.Code code, Object[] args, String debugInformation) Constructs aXmlDocumentRuntimeExceptioninstance with the specified code, message arguments, amd debug information. If a log has been configured for this exception type, the constructor logs the exception.- Parameters:
code- the exception codeargs- an argument arraydebugInformation- debug information
-
XmlDocumentRuntimeException
public XmlDocumentRuntimeException(XmlDocumentRuntimeException.Code code, Object arg, String debugInformation, Throwable rootCause) Constructs aXmlDocumentRuntimeExceptioninstance with the specified code, message argument, debug information, and root cause. If a log has been configured for this exception type, the constructor logs the exception.This is a convenience method that is a convenience method that internally invokes
XmlDocumentRuntimeException(String, Object[], String, Throwable).- Parameters:
code- the exception codearg- an argumentdebugInformation- debug informationrootCause- the root cause
-
XmlDocumentRuntimeException
public XmlDocumentRuntimeException(XmlDocumentRuntimeException.Code code, Object[] args, String debugInformation, Throwable rootCause) Constructs aXmlDocumentRuntimeExceptioninstance with the specified code, message arguments, debug information, and root cause. If a log has been configured for this exception type, the constructor logs the exception.- Parameters:
code- the exception codeargs- an argument arraydebugInformation- debug informationrootCause- the root cause
-
XmlDocumentRuntimeException
Constructs aXmlDocumentRuntimeExceptioninstance. If a log has been configured for this exception type, the constructor logs the exception.- Parameters:
debugInformation- debug informationrootCause- ex the exception to wrap
-
XmlDocumentRuntimeException
Constructs aXmlDocumentRuntimeExceptioninstance. If a log has been configured for this exception type, the constructor logs the exception.- Parameters:
arg- An argumentdebugInformation- debug informationrootCause- ex the exception to wrap
-
-
Method Details
-
getDefaultCode
Gets the defaultCode.- Specified by:
getDefaultCodein classNfbRuntimeException- Returns:
- Codes.GENERAL_FATAL_ERROR
-