NotActiveException

  • NotActiveException signals that serialization or deserialization is not currently active.

  • It's a subclass of ObjectStreamException and provides constructors with and without a reason string.

  • This exception inherits methods from Throwable for stack trace and error handling.

  • NotActiveException is thrown during object serialization or deserialization processes when they are expected to be active but are not.

public class NotActiveException extends ObjectStreamException

Thrown when serialization or deserialization is not active.

Public Constructor Summary

NotActiveException(String reason)
Constructor to create a new NotActiveException with the reason given.
NotActiveException()
Constructor to create a new NotActiveException without a reason.

Inherited Method Summary

Public Constructors

public NotActiveException (String reason)

Constructor to create a new NotActiveException with the reason given.

Parameters
reason a String describing the reason for the exception.

public NotActiveException ()

Constructor to create a new NotActiveException without a reason.