Stay organized with collections
Save and categorize content based on your preferences.
WriteAbortedException
open class WriteAbortedException : ObjectStreamException
Signals that one of the ObjectStreamExceptions was thrown during a write operation. Thrown during a read operation when one of the ObjectStreamExceptions was thrown during a write operation. The exception that terminated the write can be found in the detail field. The stream is reset to it's initial state and all references to objects already deserialized are discarded.
Summary
Public constructors |
Constructs a WriteAbortedException with a string describing the exception and the exception causing the abort.
|
Properties |
open Throwable? |
Returns the exception that terminated the operation (the cause).
|
Exception! |
Exception that was caught while writing the ObjectStream.
|
open String? |
Produce the message and include the message from the nested exception, if there is one.
|
Public constructors
WriteAbortedException
WriteAbortedException(
s: String!,
ex: Exception!)
Constructs a WriteAbortedException with a string describing the exception and the exception causing the abort.
Parameters |
s |
String!: String describing the exception. |
ex |
Exception!: Exception causing the abort. |
Properties
cause
open val cause: Throwable?
Returns the exception that terminated the operation (the cause).
Return |
Throwable? |
the exception that terminated the operation (the cause), which may be null. |
detail
var detail: Exception!
Deprecated: This field predates the general-purpose exception chaining facility. The Throwable.getCause()
method is now the preferred means of obtaining this information.
Exception that was caught while writing the ObjectStream.
message
open val message: String?
Produce the message and include the message from the nested exception, if there is one.
Return |
String? |
the detail message string of this Throwable instance (which 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,["# WriteAbortedException\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nWriteAbortedException\n=====================\n\n```\nopen class WriteAbortedException : 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.WriteAbortedException](#) |\n\nSignals that one of the ObjectStreamExceptions was thrown during a write operation. Thrown during a read operation when one of the ObjectStreamExceptions was thrown during a write operation. The exception that terminated the write can be found in the detail field. The stream is reset to it's initial state and all references to objects already deserialized are discarded.\n\nSummary\n-------\n\n| Public constructors ||\n|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|\n| [WriteAbortedException](#WriteAbortedException(kotlin.String,%20java.lang.Exception))`(`s:` `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!`, `ex:` `[Exception](../lang/Exception.html#)!`)` Constructs a WriteAbortedException with a string describing the exception and the exception causing the abort. |\n\n| Properties ||\n|----------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------|\n| open [Throwable](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-throwable/index.html)? | [cause](#cause:kotlin.Throwable) Returns the exception that terminated the operation (the *cause*). |\n| [Exception](../lang/Exception.html#)! | [detail](#detail:java.lang.Exception) Exception that was caught while writing the ObjectStream. |\n| open [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)? | [message](#message:kotlin.String) Produce the message and include the message from the nested exception, if there is one. |\n\nPublic constructors\n-------------------\n\n### WriteAbortedException\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nWriteAbortedException(\n s: String!, \n ex: Exception!)\n```\n\nConstructs a WriteAbortedException with a string describing the exception and the exception causing the abort.\n\n| Parameters ||\n|------|---------------------------------------------------------------------------------------------------------------------|\n| `s` | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!: String describing the exception. |\n| `ex` | [Exception](../lang/Exception.html#)!: Exception causing the abort. |\n\nProperties\n----------\n\n### cause\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nopen val cause: Throwable?\n```\n\nReturns the exception that terminated the operation (the *cause*).\n\n| Return ||\n|-----------------------------------------------------------------------------------------|-------------------------------------------------------------------------------|\n| [Throwable](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-throwable/index.html)? | the exception that terminated the operation (the *cause*), which may be null. |\n\n### detail\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \nDeprecated in [API level 34](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nvar detail: Exception!\n```\n\n**Deprecated:** *This field predates the general-purpose exception chaining facility. The [Throwable.getCause()](../lang/Throwable.html#getCause()) method is now the preferred means of obtaining this information.*\n\nException that was caught while writing the ObjectStream. \n\n### message\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nopen val message: String?\n```\n\nProduce the message and include the message from the nested exception, if there is one.\n\n| Return ||\n|-----------------------------------------------------------------------------------|-------------------------------------------------------------------------------|\n| [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)? | the detail message string of this `Throwable` instance (which may be `null`). |"]]