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.ExceptionAn exception thrown by the Saxon s9api API. This is always a wrapper for some other underlying exception- See Also:
- Serialized Form
 
- 
- 
Constructor SummaryConstructors 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 SaxonApiExceptionSaxonApiException(UncheckedXPathException cause)Create a SaxonApiException
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description QNamegetErrorCode()Get the error code associated with the exception, if there is oneintgetLineNumber()Get the line number associated with the exception, if known.java.lang.StringgetMessage()Returns the detail message string of this throwable.java.lang.StringgetSystemId()Get the URI of the module associated with the exception, if known.
 
- 
- 
- 
Constructor Detail- 
SaxonApiExceptionpublic SaxonApiException(java.lang.Throwable cause) Create a SaxonApiException- Parameters:
- cause- the underlying cause of the exception
 
 - 
SaxonApiExceptionpublic SaxonApiException(UncheckedXPathException cause) Create a SaxonApiException- Parameters:
- cause- the underlying cause of the exception
 
 - 
SaxonApiExceptionpublic SaxonApiException(java.lang.String message) Create a SaxonApiException- Parameters:
- message- the message
 
 - 
SaxonApiExceptionpublic SaxonApiException(java.lang.String message, java.lang.Throwable cause)Create a SaxonApiException- Parameters:
- message- the message
- cause- the underlying cause of the exception
 
 
- 
 - 
Method Detail- 
getMessagepublic java.lang.String getMessage() Returns the detail message string of this throwable.- Overrides:
- getMessagein class- java.lang.Throwable
- Returns:
- the detail message string of this Throwable instance (which may be null).
 
 - 
getErrorCodepublic 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
 
 - 
getLineNumberpublic int getLineNumber() Get the line number associated with the exception, if known.- Returns:
- the line number (typically of a line in a stylesheet, query, or schema, but in the case of validation errors it may be a line in a source document); or -1 if not known
- Since:
- 9.6
 
 - 
getSystemIdpublic java.lang.String getSystemId() Get the URI of the module associated with the exception, if known.- Returns:
- the URI of the module (typically a stylesheet, query, or schema, but in the case of validation errors it may be a source document); or null if not known
- Since:
- 9.6
 
 
- 
 
-