public static class ResolverSAXHandler.ExceptionResult extends Object
Constructor and Description |
---|
ExceptionResult(SAXParseException exception,
int exceptionType)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
Object |
getAdditionalProperties()
Return the additional properties on the result.
|
int |
getExceptionType()
Return the exception type.
|
String |
getMessage()
Return the message.
|
SAXParseException |
getSAXParseException()
Return the associated SAXParseException.
|
boolean |
hasAdditionalProperties()
Return true if there are the additional properties on the result.
|
boolean |
isException()
Return true if this is an exception (true for an exception, false for an information).
|
boolean |
isInformation()
Return true if this is an information (true for an information, false for an exception).
|
void |
setAdditionalProperties(Object properties)
Add additional properties to the result.
|
public ExceptionResult(SAXParseException exception, int exceptionType)
exception
- the SAX ExceptionexceptionType
- the exception typepublic boolean isException()
public boolean isInformation()
public int getExceptionType()
ResolverSAXHandler.WARNINGS
ResolverSAXHandler.ERRORS
ResolverSAXHandler.FATAL
ResolverSAXHandler.INFO
:note that in this case, you should use the ResolverSAXHandler.InformationResult
classpublic void setAdditionalProperties(Object properties)
ResolverSAXHandler
class at all. The client
code is free to use any class for these properties.properties
- the propertiespublic Object getAdditionalProperties()
setAdditionalProperties(java.lang.Object)
method has not
been called.public boolean hasAdditionalProperties()
setAdditionalProperties(java.lang.Object)
method has not been called.public SAXParseException getSAXParseException()
public String getMessage()