Skip to content

Most visited

Recently visited

navigation
Added in API level 1

WriteAbortedException

public class WriteAbortedException
extends ObjectStreamException

java.lang.Object
   ↳ java.lang.Throwable
     ↳ java.lang.Exception
       ↳ java.io.IOException
         ↳ java.io.ObjectStreamException
           ↳ java.io.WriteAbortedException


Signals that the readObject() method has detected an exception marker in the input stream. This marker indicates that exception occurred when the object was serialized, and this marker was inserted instead of the original object. It is a way to "propagate" an exception from the code that attempted to write the object to the code that is attempting to read the object.

See also:

Summary

Fields

public Exception detail

The exception that occured when writeObject() was attempting to serialize the object.

Public constructors

WriteAbortedException(String detailMessage, Exception rootCause)

Constructs a new WriteAbortedException with its stack trace, detail message and the exception which caused the underlying problem when serializing the object filled in.

Public methods

Throwable getCause()

Gets the cause of this exception or null if there is no cause.

String getMessage()

Gets the extra information message which was provided when this exception was created.

Inherited methods

From class java.lang.Throwable
From class java.lang.Object

Fields

detail

Added in API level 1
Exception detail

The exception that occured when writeObject() was attempting to serialize the object.

Public constructors

WriteAbortedException

Added in API level 1
WriteAbortedException (String detailMessage, 
                Exception rootCause)

Constructs a new WriteAbortedException with its stack trace, detail message and the exception which caused the underlying problem when serializing the object filled in.

Parameters
detailMessage String: the detail message for this exception.
rootCause Exception: the exception that was thrown when serializing the object.

Public methods

getCause

Added in API level 1
Throwable getCause ()

Gets the cause of this exception or null if there is no cause.

Returns
Throwable the exception cause.

getMessage

Added in API level 1
String getMessage ()

Gets the extra information message which was provided when this exception was created. Returns null if no message was provided at creation time.

Returns
String the exception message.
This site uses cookies to store your preferences for site-specific language and display options.

Hooray!

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.