Stay organized with collections
Save and categorize content based on your preferences.
NotActiveException
open class NotActiveException : ObjectStreamException
Thrown when serialization or deserialization is not active.
Summary
Public constructors |
Constructor to create a new NotActiveException without a reason.
|
Constructor to create a new NotActiveException with the reason given.
|
Public constructors
NotActiveException
NotActiveException()
Constructor to create a new NotActiveException without a reason.
NotActiveException
NotActiveException(reason: String!)
Constructor to create a new NotActiveException with the reason given.
Parameters |
reason |
String!: a String describing 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,["# NotActiveException\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nNotActiveException\n==================\n\n```\nopen class NotActiveException : ObjectStreamException\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](../lang/Exception.html#) ||||\n| | | ↳ | [java.io.IOException](/reference/kotlin/java/io/IOException) |||\n| | | | ↳ | [java.io.ObjectStreamException](/reference/kotlin/java/io/ObjectStreamException) ||\n| | | | | ↳ | [java.io.NotActiveException](#) |\n\nThrown when serialization or deserialization is not active.\n\nSummary\n-------\n\n| Public constructors ||\n|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|\n| [NotActiveException](#NotActiveException())`()` Constructor to create a new NotActiveException without a reason. |\n| [NotActiveException](#NotActiveException(kotlin.String))`(`reason:` `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!`)` Constructor to create a new NotActiveException with the reason given. |\n\nPublic constructors\n-------------------\n\n### NotActiveException\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nNotActiveException()\n```\n\nConstructor to create a new NotActiveException without a reason. \n\n### NotActiveException\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nNotActiveException(reason: String!)\n```\n\nConstructor to create a new NotActiveException with the reason given.\n\n| Parameters ||\n|----------|--------------------------------------------------------------------------------------------------------------------------------------|\n| `reason` | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!: a String describing the reason for the exception. |"]]