Stay organized with collections
Save and categorize content based on your preferences.
StreamCorruptedException
open class StreamCorruptedException : ObjectStreamException
Thrown when control information that was read from an object stream violates internal consistency checks.
Summary
Public constructors |
Create a StreamCorruptedException and list no reason why thrown.
|
Create a StreamCorruptedException and list a reason why thrown.
|
Public constructors
StreamCorruptedException
StreamCorruptedException()
Create a StreamCorruptedException and list no reason why thrown.
StreamCorruptedException
StreamCorruptedException(reason: String!)
Create a StreamCorruptedException and list a reason why thrown.
Parameters |
reason |
String!: 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,["# StreamCorruptedException\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nStreamCorruptedException\n========================\n\n```\nopen class StreamCorruptedException : 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.StreamCorruptedException](#) |\n\nThrown when control information that was read from an object stream violates internal consistency checks.\n\nSummary\n-------\n\n| Public constructors ||\n|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|\n| [StreamCorruptedException](#StreamCorruptedException())`()` Create a StreamCorruptedException and list no reason why thrown. |\n| [StreamCorruptedException](#StreamCorruptedException(kotlin.String))`(`reason:` `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!`)` Create a StreamCorruptedException and list a reason why thrown. |\n\nPublic constructors\n-------------------\n\n### StreamCorruptedException\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nStreamCorruptedException()\n```\n\nCreate a StreamCorruptedException and list no reason why thrown. \n\n### StreamCorruptedException\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nStreamCorruptedException(reason: String!)\n```\n\nCreate a StreamCorruptedException and list a reason why thrown.\n\n| Parameters ||\n|----------|------------------------------------------------------------------------------------------------------------------------------------|\n| `reason` | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!: String describing the reason for the exception. |"]]