System
Class ObjectDisposedException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by System.SystemException
                  extended by System.InvalidOperationException
                      extended by System.ObjectDisposedException
All Implemented Interfaces:
java.io.Serializable

public class ObjectDisposedException
extends InvalidOperationException

The exception that is thrown when an operation is performed on a disposed object.

Author:
Halofreak1990
See Also:
Serialized Form

Constructor Summary
ObjectDisposedException(java.lang.String objectName)
          Initializes a new instance of the ObjectDisposedException class with a string containing the name of the disposed object.
ObjectDisposedException(java.lang.String objectName, java.lang.String message)
          Initializes a new instance of the ObjectDisposedException class with the specified object name and message.
 
Method Summary
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ObjectDisposedException

public ObjectDisposedException(java.lang.String objectName)
Initializes a new instance of the ObjectDisposedException class with a string containing the name of the disposed object.

Parameters:
objectName - A string containing the name of the disposed object.

ObjectDisposedException

public ObjectDisposedException(java.lang.String objectName,
                               java.lang.String message)
Initializes a new instance of the ObjectDisposedException class with the specified object name and message.

Parameters:
objectName - The name of the disposed object.
message - The error message that explains the reason for the exception.