Added in API level 8

TransformerConfigurationException

open class TransformerConfigurationException : TransformerException

Indicates a serious configuration error.

Summary

Public constructors

Create a new TransformerConfigurationException with no detail message.

Create a new TransformerConfigurationException with the String specified as an error message.

Create a new TransformerConfigurationException with the given Exception base cause and detail message.

Create a new TransformerConfigurationException from a message and a Locator.

Wrap an existing exception in a TransformerConfigurationException.

Create a new TransformerConfigurationException with a given Exception base cause of the error.

Inherited functions
Throwable! getException()

This method retrieves an exception that this exception wraps.

String! getLocationAsString()

Get the location information as a string.

SourceLocator! getLocator()

Method getLocator retrieves an instance of a SourceLocator object that specifies where an error occurred.

String! getMessageAndLocation()

Get the error message with location information appended.

Throwable initCause(cause: Throwable?)

Initializes the cause of this throwable to the specified value. (The cause is the throwable that caused this throwable to get thrown.)

This method can be called at most once. It is generally called from within the constructor, or immediately after creating the throwable. If this throwable was created with TransformerException(java.lang.Throwable) or TransformerException(java.lang.String,java.lang.Throwable), this method cannot be called even once.

Unit printStackTrace()

Print the the trace of methods from where the error originated. This will trace all nested exception objects, as well as this object.

Unit printStackTrace(s: PrintStream)

Print the the trace of methods from where the error originated. This will trace all nested exception objects, as well as this object.

Unit printStackTrace(s: PrintWriter)

Print the the trace of methods from where the error originated. This will trace all nested exception objects, as well as this object.

Unit setLocator(location: SourceLocator!)

Method setLocator sets an instance of a SourceLocator object that specifies where an error occurred.

Inherited properties
Throwable? cause

Returns the cause of this throwable or null if the cause is nonexistent or unknown. (The cause is the throwable that caused this throwable to get thrown.)

Public constructors

TransformerConfigurationException

Added in API level 8
TransformerConfigurationException()

Create a new TransformerConfigurationException with no detail message.

TransformerConfigurationException

Added in API level 8
TransformerConfigurationException(msg: String!)

Create a new TransformerConfigurationException with the String specified as an error message.

Parameters
msg String!: The error message for the exception.

TransformerConfigurationException

Added in API level 8
TransformerConfigurationException(
    msg: String!,
    e: Throwable!)

Create a new TransformerConfigurationException with the given Exception base cause and detail message.

Parameters
e Throwable!: The exception to be encapsulated in a TransformerConfigurationException
msg String!: The detail message.

TransformerConfigurationException

Added in API level 8
TransformerConfigurationException(
    message: String!,
    locator: SourceLocator!)

Create a new TransformerConfigurationException from a message and a Locator.

This constructor is especially useful when an application is creating its own exception from within a DocumentHandler callback.

Parameters
message String!: The error or warning message.
locator SourceLocator!: The locator object for the error or warning.

TransformerConfigurationException

Added in API level 8
TransformerConfigurationException(
    message: String!,
    locator: SourceLocator!,
    e: Throwable!)

Wrap an existing exception in a TransformerConfigurationException.

Parameters
message String!: The error or warning message, or null to use the message from the embedded exception.
locator SourceLocator!: The locator object for the error or warning.
e Throwable!: Any exception.

TransformerConfigurationException

Added in API level 8
TransformerConfigurationException(e: Throwable!)

Create a new TransformerConfigurationException with a given Exception base cause of the error.

Parameters
e Throwable!: The exception to be encapsulated in a TransformerConfigurationException.