Stay organized with collections
Save and categorize content based on your preferences.
BootstrapMethodError
open class BootstrapMethodError : LinkageError
Thrown to indicate that an invokedynamic
instruction or a dynamic constant failed to resolve its bootstrap method and arguments, or for invokedynamic
instruction the bootstrap method has failed to provide a call site with a target of the correct method type, or for a dynamic constant the bootstrap method has failed to provide a constant value of the required type.
Summary
Public constructors |
Constructs a BootstrapMethodError with no detail message.
|
Constructs a BootstrapMethodError with the specified detail message.
|
Constructs a BootstrapMethodError with the specified detail message and cause.
|
Constructs a BootstrapMethodError with the specified cause.
|
Public constructors
BootstrapMethodError
BootstrapMethodError()
Constructs a BootstrapMethodError
with no detail message.
BootstrapMethodError
BootstrapMethodError(s: String!)
Constructs a BootstrapMethodError
with the specified detail message.
Parameters |
s |
String!: the detail message. |
BootstrapMethodError
BootstrapMethodError(
s: String!,
cause: Throwable!)
Constructs a BootstrapMethodError
with the specified detail message and cause.
Parameters |
s |
String!: the detail message. |
cause |
Throwable!: the cause, may be null . |
BootstrapMethodError
BootstrapMethodError(cause: Throwable!)
Constructs a BootstrapMethodError
with the specified cause.
Parameters |
cause |
Throwable!: the cause, may be null . |
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,["# BootstrapMethodError\n\nAdded in [API level 26](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nBootstrapMethodError\n====================\n\n```\nopen class BootstrapMethodError : LinkageError\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.LinkageError](/reference/kotlin/java/lang/LinkageError) ||\n| | | | ↳ | [java.lang.BootstrapMethodError](#) |\n\nThrown to indicate that an `invokedynamic` instruction or a dynamic constant failed to resolve its bootstrap method and arguments, or for `invokedynamic` instruction the bootstrap method has failed to provide a [call site](/reference/kotlin/java/lang/invoke/CallSite) with a [target](/reference/kotlin/java/lang/invoke/CallSite#getTarget()) of the correct [method type](/reference/kotlin/java/lang/invoke/MethodHandle#type()), or for a dynamic constant the bootstrap method has failed to provide a constant value of the required type.\n\nSummary\n-------\n\n| Public constructors ||\n|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|\n| [BootstrapMethodError](#BootstrapMethodError())`()` Constructs a `BootstrapMethodError` with no detail message. |\n| [BootstrapMethodError](#BootstrapMethodError(kotlin.String))`(`s:` `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!`)` Constructs a `BootstrapMethodError` with the specified detail message. |\n| [BootstrapMethodError](#BootstrapMethodError(kotlin.String,%20kotlin.Throwable))`(`s:` `[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 a `BootstrapMethodError` with the specified detail message and cause. |\n| [BootstrapMethodError](#BootstrapMethodError(kotlin.Throwable))`(`cause:` `[Throwable](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-throwable/index.html)!`)` Constructs a `BootstrapMethodError` with the specified cause. |\n\nPublic constructors\n-------------------\n\n### BootstrapMethodError\n\nAdded in [API level 26](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nBootstrapMethodError()\n```\n\nConstructs a `BootstrapMethodError` with no detail message. \n\n### BootstrapMethodError\n\nAdded in [API level 26](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nBootstrapMethodError(s: String!)\n```\n\nConstructs a `BootstrapMethodError` 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. |\n\n### BootstrapMethodError\n\nAdded in [API level 26](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nBootstrapMethodError(\n s: String!, \n cause: Throwable!)\n```\n\nConstructs a `BootstrapMethodError` with the specified detail message and cause.\n\n| Parameters ||\n|---------|--------------------------------------------------------------------------------------------------------------------|\n| `s` | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!: the detail message. |\n| `cause` | [Throwable](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-throwable/index.html)!: the cause, may be `null`. |\n\n### BootstrapMethodError\n\nAdded in [API level 26](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nBootstrapMethodError(cause: Throwable!)\n```\n\nConstructs a `BootstrapMethodError` with the specified cause.\n\n| Parameters ||\n|---------|--------------------------------------------------------------------------------------------------------------------|\n| `cause` | [Throwable](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-throwable/index.html)!: the cause, may be `null`. |"]]