Stay organized with collections
Save and categorize content based on your preferences.
UnknownError
open class UnknownError : VirtualMachineError
Thrown when an unknown but serious exception has occurred in the Java Virtual Machine.
Summary
Public constructors |
Constructs an UnknownError with no detail message.
|
Constructs an UnknownError with the specified detail message.
|
Public constructors
UnknownError
UnknownError()
Constructs an UnknownError
with no detail message.
UnknownError
UnknownError(s: String!)
Constructs an UnknownError
with the specified detail message.
Parameters |
s |
String!: the detail message. |
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.
[null,null,["Last updated 2025-02-10 UTC."],[],[],null,["# UnknownError\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nUnknownError\n============\n\n```\nopen class UnknownError : VirtualMachineError\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.Error](/reference/kotlin/java/lang/Error) |||\n| | | ↳ | [java.lang.VirtualMachineError](/reference/kotlin/java/lang/VirtualMachineError) ||\n| | | | ↳ | [java.lang.UnknownError](#) |\n\nThrown when an unknown but serious exception has occurred in the Java Virtual Machine.\n\nSummary\n-------\n\n| Public constructors ||\n|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|\n| [UnknownError](#UnknownError())`()` Constructs an `UnknownError` with no detail message. |\n| [UnknownError](#UnknownError(kotlin.String))`(`s:` `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!`)` Constructs an `UnknownError` with the specified detail message. |\n\nPublic constructors\n-------------------\n\n### UnknownError\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nUnknownError()\n```\n\nConstructs an `UnknownError` with no detail message. \n\n### UnknownError\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nUnknownError(s: String!)\n```\n\nConstructs an `UnknownError` with the specified detail message.\n\n| Parameters ||\n|-----|--------------------------------------------------------------------------------------------------------|\n| `s` | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!: the detail message. |"]]