FileDocCategorySizeDatePackage
NotSerializableException.javaAPI DocAndroid 1.5 API2042Wed May 06 22:41:04 BST 2009java.io

NotSerializableException

public class NotSerializableException extends ObjectStreamException
Signals that an object that is not serializable has been passed into the {@code ObjectOutput.writeObject()} mthod. This can happen if the object does not implement {@code Serializable} or {@code Externalizable}, or if it is serializable but it overrides {@code writeObject(ObjectOutputStream)} and explicitly prevents serialization by throwing this type of exception.
see
ObjectOutput#writeObject(Object)
see
ObjectOutputStream#writeObject(Object)
since
Android 1.0

Fields Summary
private static final long
serialVersionUID
Constructors Summary
public NotSerializableException()
Constructs a new {@code NotSerializableException} with its stack trace filled in.

since
Android 1.0


                        
      
        super();
    
public NotSerializableException(String detailMessage)
Constructs a new {@link NotSerializableException} with its stack trace and detail message filled in.

param
detailMessage the detail message for this exception.
since
Android 1.0

        super(detailMessage);
    
Methods Summary