public class DeltaXMLProcessingException extends DeltaXMLException
This class specifies an exceptional condition that occurred during the comparison and recombination processes.
For release 5.0 and onwards this class has been subtyped into explicit subtypes for each error while maintaining the previous error code mechanism used in earlier releases. The following table documents this mapping:
Constructor and Description |
---|
DeltaXMLProcessingException(java.lang.String message)
Creates a new exception with an identifying message.
|
DeltaXMLProcessingException(java.lang.String message,
int errorCode)
Creates a new exception with an identifying message and error code.
|
DeltaXMLProcessingException(java.lang.String message,
int errorCode,
FailureSeverity severity)
Creates a new exception providing an additional message, errorCode and severity.
|
DeltaXMLProcessingException(java.lang.String message,
java.lang.Throwable e)
Creates a new exception which wraps an existing exception and provides an additional message.
|
DeltaXMLProcessingException(java.lang.String message,
java.lang.Throwable e,
int errorCode)
Creates a new exception which wraps an existing exception and also provides an additional message and errorCode.
|
DeltaXMLProcessingException(java.lang.String message,
java.lang.Throwable e,
int errorCode,
FailureSeverity severity)
Creates a new exception which wraps an existing exception and also provides an additional message, errorCode and
severity.
|
DeltaXMLProcessingException(java.lang.Throwable e)
Creates a new exception which wraps an existing exception.
|
DeltaXMLProcessingException(java.lang.Throwable e,
int errorCode)
Creates a new exception which wraps an existing exception and provides an errorCode.
|
Modifier and Type | Method and Description |
---|---|
int |
getErrorCode()
Errors detected by the Comparator and Combiner operations were each given an identifying number in releases prior to 5.0 of
the XML Compare API.
|
FailureSeverity |
getSeverity()
Reports the severity of the exception.
|
getCause, getThrowable
public DeltaXMLProcessingException(java.lang.String message)
Creates a new exception with an identifying message.
message
- The error or warning message.public DeltaXMLProcessingException(java.lang.String message, int errorCode)
Creates a new exception with an identifying message and error code.
message
- The error or warning message.errorCode
- The code which identifies the error type and origin.DeltaXMLProcessingException.getErrorCode()
public DeltaXMLProcessingException(java.lang.Throwable e)
Creates a new exception which wraps an existing exception.
e
- The Exception or Error to wrap.public DeltaXMLProcessingException(java.lang.Throwable e, int errorCode)
Creates a new exception which wraps an existing exception and provides an errorCode.
e
- The Exception or Error to wrap.errorCode
- The code which identifies the error type and origin.DeltaXMLProcessingException.getErrorCode()
public DeltaXMLProcessingException(java.lang.String message, java.lang.Throwable e)
Creates a new exception which wraps an existing exception and provides an additional message.
e
- The Exception or Error to wrap.message
- The error or warning message.public DeltaXMLProcessingException(java.lang.String message, java.lang.Throwable e, int errorCode)
Creates a new exception which wraps an existing exception and also provides an additional message and errorCode.
e
- The Exception or Error to wrap.errorCode
- The code which identifies the error type and origin.message
- The error or warning message.DeltaXMLProcessingException.getErrorCode()
public DeltaXMLProcessingException(java.lang.String message, java.lang.Throwable e, int errorCode, FailureSeverity severity)
Creates a new exception which wraps an existing exception and also provides an additional message, errorCode and severity.
e
- The Exception or Error to wrap.errorCode
- The code which identifies the error type and origin.message
- The error or warning message.severity
- The severity of the message usually reported through the ListenerDeltaXMLProcessingException.getErrorCode()
public DeltaXMLProcessingException(java.lang.String message, int errorCode, FailureSeverity severity)
Creates a new exception providing an additional message, errorCode and severity.
errorCode
- The code which identifies the error type and origin.message
- The error or warning message.severity
- The severity of the message usually reported through the ListenerDeltaXMLProcessingException.getErrorCode()
public int getErrorCode()
Errors detected by the Comparator and Combiner operations were each given an identifying number in releases prior to 5.0 of the XML Compare API. In release 5.0 this mechanism has been improved using explicit subtypes of this class. The errors codes and this method have been maintained for backwards compatibility.
This number uniquely identifies both the type of error and the location in the code where it originates.
The error code may be useful for analyzing or interpreting errors and reporting bugs.
They can be roughly categorized by:
public FailureSeverity getSeverity()
FailureSeverity