Package net.sf.saxon.s9api
Class SaxonApiException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- net.sf.saxon.s9api.SaxonApiException
-
- All Implemented Interfaces:
java.io.Serializable
public class SaxonApiException extends java.lang.Exception
An exception thrown by the Saxon s9api API. This is always a wrapper for some other underlying exception- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SaxonApiException(java.lang.String message)
Create a SaxonApiExceptionSaxonApiException(java.lang.String message, java.lang.Throwable cause)
Create a SaxonApiExceptionSaxonApiException(java.lang.Throwable cause)
Create a SaxonApiException
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description QName
getErrorCode()
Get the error code associated with the exception, if there is onejava.lang.String
getMessage()
Returns the detail message string of this throwable.
-
-
-
Constructor Detail
-
SaxonApiException
public SaxonApiException(java.lang.Throwable cause)
Create a SaxonApiException- Parameters:
cause
- the underlying cause of the exception
-
SaxonApiException
public SaxonApiException(java.lang.String message)
Create a SaxonApiException- Parameters:
message
- the message
-
SaxonApiException
public SaxonApiException(java.lang.String message, java.lang.Throwable cause)
Create a SaxonApiException- Parameters:
message
- the messagecause
- the underlying cause of the exception
-
-
Method Detail
-
getMessage
public java.lang.String getMessage()
Returns the detail message string of this throwable.- Overrides:
getMessage
in classjava.lang.Throwable
- Returns:
- the detail message string of this Throwable instance (which may be null).
-
getErrorCode
public QName 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
-
-