Stay organized with collections
Save and categorize content based on your preferences.
InternalError
open class InternalError : VirtualMachineError
Known Direct Subclasses
ZipError |
Signals that an unrecoverable error has occurred.
|
|
Thrown to indicate some unexpected internal error has occurred in the Java Virtual Machine.
Summary
Public constructors |
Constructs an InternalError with no detail message.
|
Constructs an InternalError with the specified detail message.
|
Constructs an InternalError with the specified detail message and cause.
|
Constructs an InternalError with the specified cause and a detail message of (cause==null ? null : cause.toString()) (which typically contains the class and detail message of cause ).
|
Public constructors
InternalError
InternalError()
Constructs an InternalError
with no detail message.
InternalError
InternalError(message: String!)
Constructs an InternalError
with the specified detail message.
Parameters |
message |
String!: the detail message. |
InternalError
InternalError(
message: String!,
cause: Throwable!)
Constructs an InternalError
with the specified detail message and cause.
Note that the detail message associated with cause
is not automatically incorporated in this error's detail message.
Parameters |
message |
String!: the detail message (which is saved for later retrieval by the getMessage() method). |
cause |
Throwable!: the cause (which is saved for later retrieval by the getCause() method). (A null value is permitted, and indicates that the cause is nonexistent or unknown.) |
InternalError
InternalError(cause: Throwable!)
Constructs an InternalError
with the specified cause and a detail message of (cause==null ? null : cause.toString())
(which typically contains the class and detail message of cause
).
Parameters |
cause |
Throwable!: the cause (which is saved for later retrieval by the getCause() method). (A null value is permitted, and indicates that 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,["# InternalError\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nInternalError\n=============\n\n```\nopen class InternalError : 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.InternalError](#) |\n\n|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Known Direct Subclasses [ZipError](../util/zip/ZipError.html#) |----------------------------------------|---------------------------------------------------| | [ZipError](../util/zip/ZipError.html#) | Signals that an unrecoverable error has occurred. | |\n\nThrown to indicate some unexpected internal error has occurred in the Java Virtual Machine.\n\nSummary\n-------\n\n| Public constructors ||\n|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|\n| [InternalError](#InternalError())`()` Constructs an `InternalError` with no detail message. |\n| [InternalError](#InternalError(kotlin.String))`(`message:` `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!`)` Constructs an `InternalError` with the specified detail message. |\n| [InternalError](#InternalError(kotlin.String,%20kotlin.Throwable))`(`message:` `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!`, `cause:` `[Throwable](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-throwable/index.html)!`)` Constructs an `InternalError` with the specified detail message and cause. |\n| [InternalError](#InternalError(kotlin.Throwable))`(`cause:` `[Throwable](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-throwable/index.html)!`)` Constructs an `InternalError` with the specified cause and a detail message of `(cause==null ? null : cause.toString())` (which typically contains the class and detail message of `cause`). |\n\nPublic constructors\n-------------------\n\n### InternalError\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nInternalError()\n```\n\nConstructs an `InternalError` with no detail message. \n\n### InternalError\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nInternalError(message: String!)\n```\n\nConstructs an `InternalError` with the specified detail message.\n\n| Parameters ||\n|-----------|--------------------------------------------------------------------------------------------------------|\n| `message` | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!: the detail message. |\n\n### InternalError\n\nAdded in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nInternalError(\n message: String!, \n cause: Throwable!)\n```\n\nConstructs an `InternalError` with the specified detail message and cause.\n\nNote that the detail message associated with `cause` is *not* automatically incorporated in this error's detail message.\n\n| Parameters ||\n|-----------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `message` | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!: the detail message (which is saved for later retrieval by the [getMessage()](/reference/kotlin/java/lang/Throwable#getMessage()) method). |\n| `cause` | [Throwable](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-throwable/index.html)!: the cause (which is saved for later retrieval by the [getCause()](/reference/kotlin/java/lang/Throwable#getCause()) method). (A `null` value is permitted, and indicates that the cause is nonexistent or unknown.) |\n\n### InternalError\n\nAdded in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nInternalError(cause: Throwable!)\n```\n\nConstructs an `InternalError` with the specified cause and a detail message of `(cause==null ? null : cause.toString())` (which typically contains the class and detail message of `cause`).\n\n| Parameters ||\n|---------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `cause` | [Throwable](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-throwable/index.html)!: the cause (which is saved for later retrieval by the [getCause()](/reference/kotlin/java/lang/Throwable#getCause()) method). (A `null` value is permitted, and indicates that the cause is nonexistent or unknown.) |"]]