Stay organized with collections
Save and categorize content based on your preferences.
open class MalformedParametersException : RuntimeException
Thrown when the
attempts to read method parameters from a class file and determines that one or more parameters are malformed.
The following is a list of conditions under which this exception can be thrown:
- The number of parameters (parameter_count) is wrong for the method
- A constant pool index is out of bounds.
- A constant pool index does not refer to a UTF-8 entry
- A parameter's name is "", or contains an illegal character
- The flags field contains an illegal flag (something other than FINAL, SYNTHETIC, or MANDATED)
See
java.lang.reflect.Executable#getParameters
for more information.
Summary
Public constructors |
Create a MalformedParametersException with an empty reason.
|
Create a MalformedParametersException .
|
Public constructors
MalformedParametersException()
Create a MalformedParametersException
with an empty reason.
MalformedParametersException(reason: String!)
Create a MalformedParametersException
.
Parameters |
reason |
String!: The reason for the exception. |
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,["# MalformedParametersException\n\nAdded in [API level 28](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nMalformedParametersException\n============================\n\n```\nopen class MalformedParametersException : RuntimeException\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](../Exception.html#) |||\n| | | ↳ | [java.lang.RuntimeException](../RuntimeException.html#) ||\n| | | | ↳ | [java.lang.reflect.MalformedParametersException](#) |\n\nThrown when [the](/reference/kotlin/java/lang/reflect/Executable#getParameters()) attempts to read method parameters from a class file and determines that one or more parameters are malformed.\n\nThe following is a list of conditions under which this exception can be thrown:\n\n- The number of parameters (parameter_count) is wrong for the method\n- A constant pool index is out of bounds.\n- A constant pool index does not refer to a UTF-8 entry\n- A parameter's name is \"\", or contains an illegal character\n- The flags field contains an illegal flag (something other than FINAL, SYNTHETIC, or MANDATED)\n\nSee [java.lang.reflect.Executable#getParameters](/reference/kotlin/java/lang/reflect/Executable#getParameters()) for more information.\n\nSummary\n-------\n\n| Public constructors ||\n|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|\n| [MalformedParametersException](#MalformedParametersException())`()` Create a `MalformedParametersException` with an empty reason. |\n| [MalformedParametersException](#MalformedParametersException(kotlin.String))`(`reason:` `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!`)` Create a `MalformedParametersException`. |\n\nPublic constructors\n-------------------\n\n### MalformedParametersException\n\nAdded in [API level 28](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nMalformedParametersException()\n```\n\nCreate a `MalformedParametersException` with an empty reason. \n\n### MalformedParametersException\n\nAdded in [API level 28](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nMalformedParametersException(reason: String!)\n```\n\nCreate a `MalformedParametersException`.\n\n| Parameters ||\n|----------|------------------------------------------------------------------------------------------------------------------|\n| `reason` | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!: The reason for the exception. |"]]