Stay organized with collections
Save and categorize content based on your preferences.
XPathException
open class XPathException : Exception
Known Indirect Subclasses
|
XPathException
represents a generic XPath exception.
Summary
Public constructors |
Constructs a new XPathException with the specified detail message .
|
Constructs a new XPathException with the specified cause .
|
Public constructors
XPathException
XPathException(message: String!)
Constructs a new XPathException
with the specified detail message
.
The cause
is not initialized.
If message
is null
, then a NullPointerException
is thrown.
Parameters |
message |
String!: The detail message. |
XPathException
XPathException(cause: Throwable!)
Constructs a new XPathException
with the specified cause
.
If cause
is null
, then a NullPointerException
is thrown.
Exceptions |
java.lang.NullPointerException |
if cause is null . |
Public methods
printStackTrace
open fun printStackTrace(): Unit
Properties
cause
open val cause: Throwable?
Return |
Throwable? |
the cause of this throwable or null if the cause is nonexistent or unknown. |
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-10 UTC."],[],[],null,["# XPathException\n\nAdded in [API level 8](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nXPathException\n==============\n\n```\nopen class XPathException : Exception\n```\n\n|---|---|---|-------------------------------------|\n| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) ||||\n| ↳ | [kotlin.Throwable](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-throwable/index.html) |||\n| | ↳ | [java.lang.Exception](../../../java/lang/Exception.html#) ||\n| | | ↳ | [javax.xml.xpath.XPathException](#) |\n\n|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Known Direct Subclasses [XPathExpressionException](/reference/kotlin/javax/xml/xpath/XPathExpressionException), [XPathFactoryConfigurationException](/reference/kotlin/javax/xml/xpath/XPathFactoryConfigurationException) |------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------| | [XPathExpressionException](/reference/kotlin/javax/xml/xpath/XPathExpressionException) | `XPathExpressionException` represents an error in an XPath expression. | | [XPathFactoryConfigurationException](/reference/kotlin/javax/xml/xpath/XPathFactoryConfigurationException) | `XPathFactoryConfigurationException` represents a configuration error in a `XPathFactory` environment. | |\n\n|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Known Indirect Subclasses [XPathFunctionException](/reference/kotlin/javax/xml/xpath/XPathFunctionException) |------------------------------------------------------------------------------------|----------------------------------------------------------------------| | [XPathFunctionException](/reference/kotlin/javax/xml/xpath/XPathFunctionException) | `XPathFunctionException` represents an error with an XPath function. | |\n\n`XPathException` represents a generic XPath exception.\n\n\u003cbr /\u003e\n\nSummary\n-------\n\n| Public constructors ||\n|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|\n| [XPathException](#XPathException(kotlin.String))`(`message:` `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!`)` Constructs a new `XPathException` with the specified detail `message`. |\n| [XPathException](#XPathException(kotlin.Throwable))`(`cause:` `[Throwable](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-throwable/index.html)!`)` Constructs a new `XPathException` with the specified `cause`. |\n\n| Public methods ||\n|-----------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------|\n| open [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | [printStackTrace](#printStackTrace())`()` \u003cbr /\u003e |\n| open [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | [printStackTrace](#printStackTrace(java.io.PrintStream))`(`s:` `[PrintStream](../../../java/io/PrintStream.html#)`)` \u003cbr /\u003e |\n| open [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | [printStackTrace](#printStackTrace(java.io.PrintWriter))`(`s:` `[PrintWriter](../../../java/io/PrintWriter.html#)`)` \u003cbr /\u003e |\n\n| Properties ||\n|----------------------------------------------------------------------------------------------|-----------------------------------------|\n| open [Throwable](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-throwable/index.html)? | [cause](#cause:kotlin.Throwable) \u003cbr /\u003e |\n\nPublic constructors\n-------------------\n\n### XPathException\n\nAdded in [API level 8](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nXPathException(message: String!)\n```\n\nConstructs a new `XPathException` with the specified detail `message`.\n\nThe `cause` is not initialized.\n\nIf `message` is `null`, then a `NullPointerException` is thrown.\n\n| Parameters ||\n|-----------|--------------------------------------------------------------------------------------------------------|\n| `message` | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!: The detail message. |\n\n### XPathException\n\nAdded in [API level 8](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nXPathException(cause: Throwable!)\n```\n\nConstructs a new `XPathException` with the specified `cause`.\n\nIf `cause` is `null`, then a `NullPointerException` is thrown.\n\n| Parameters ||\n|---------|-----------------------------------------------------------------------------------------------------|\n| `cause` | [Throwable](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-throwable/index.html)!: The cause. |\n\n| Exceptions ||\n|----------------------------------|-----------------------|\n| `java.lang.NullPointerException` | if `cause` is `null`. |\n\nPublic methods\n--------------\n\n### printStackTrace\n\nAdded in [API level 8](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nopen fun printStackTrace(): Unit\n``` \n\n### printStackTrace\n\nAdded in [API level 8](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nopen fun printStackTrace(s: PrintStream): Unit\n```\n\n| Parameters ||\n|-----|------------------------------------------------------------------------------------|\n| `s` | [PrintStream](../../../java/io/PrintStream.html#): `PrintStream` to use for output |\n\n### printStackTrace\n\nAdded in [API level 8](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nopen fun printStackTrace(s: PrintWriter): Unit\n```\n\n| Parameters ||\n|-----|------------------------------------------------------------------------------------|\n| `s` | [PrintWriter](../../../java/io/PrintWriter.html#): `PrintWriter` to use for output |\n\nProperties\n----------\n\n### cause\n\nAdded in [API level 8](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nopen val cause: Throwable?\n```\n\n| Return ||\n|-----------------------------------------------------------------------------------------|-------------------------------------------------------------------------------|\n| [Throwable](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-throwable/index.html)? | the cause of this throwable or `null` if the cause is nonexistent or unknown. |"]]