Please note that the contents of this offline web site may be out of date. To access the most recent documentation visit the online version .
Note that links that point to online resources are green in color and will open in a new window.
We would love it if you could give us feedback about this material by filling this form (You have to be online to fill it)
Android APIs
public class

WriteAbortedException

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

Class Overview

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.

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.
[Expand]
Inherited Methods
From class java.lang.Throwable
From class java.lang.Object

Fields

public Exception detail

Added in API level 1

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

Public Constructors

public WriteAbortedException ( String detailMessage, Exception rootCause)

Added in API level 1

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 the detail message for this exception.
rootCause the exception that was thrown when serializing the object.

Public Methods

public Throwable getCause ()

Added in API level 1

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

Returns
  • the exception cause.

public String getMessage ()

Added in API level 1

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

Returns
  • the exception message.