Package net.sf.saxon.s9api
Class SaxonApiException
java.lang.Object
java.lang.Throwable
java.lang.Exception
net.sf.saxon.s9api.SaxonApiException
- All Implemented Interfaces:
Serializable
An exception thrown by the Saxon s9api API. This is always a wrapper for some other underlying exception
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionSaxonApiException
(String message) Create a SaxonApiExceptionSaxonApiException
(String message, Throwable cause) Create a SaxonApiExceptionSaxonApiException
(Throwable cause) Create a SaxonApiException -
Method Summary
Modifier and TypeMethodDescriptionGet the error code associated with the exception, if there is oneReturns the detail message string of this throwable.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
SaxonApiException
Create a SaxonApiException- Parameters:
cause
- the underlying cause of the exception
-
SaxonApiException
Create a SaxonApiException- Parameters:
message
- the message
-
SaxonApiException
Create a SaxonApiException- Parameters:
message
- the messagecause
- the underlying cause of the exception
-
-
Method Details
-
getMessage
Returns the detail message string of this throwable.- Overrides:
getMessage
in classThrowable
- Returns:
- the detail message string of this Throwable instance (which may be null).
-
getErrorCode
Get the error code associated with the exception, if there is one- Returns:
- the associated error code, or null if no error code is available
- Since:
- 9.3
-