ptolemy.kernel.util
Class NoSuchItemException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by ptolemy.kernel.util.KernelException
              extended by ptolemy.kernel.util.NoSuchItemException
All Implemented Interfaces:
java.io.Serializable

public class NoSuchItemException
extends KernelException

Thrown on access (by name) to an item that doesn't exist. E.g., attempt to remove a port by name and no such port exists.

Since:
Ptolemy II 0.2
Version:
$Id: NoSuchItemException.java 38798 2005-07-08 20:00:01Z cxh $
Author:
Edward A. Lee
See Also:
Serialized Form
Accepted Rating:
Green (cxh)
Proposed Rating:
Green (cxh)

Constructor Summary
NoSuchItemException(Nameable object, java.lang.String detail)
          Construct an exception with a detail message that includes the name of the argument.
NoSuchItemException(Nameable object, java.lang.Throwable cause, java.lang.String detail)
          Construct an exception with a cause and a detail message that includes the name of the argument.
NoSuchItemException(java.lang.String detail)
          Construct an exception with a detail message.
 
Method Summary
 
Methods inherited from class ptolemy.kernel.util.KernelException
_setCause, _setMessage, generateMessage, generateMessage, generateMessage, getCause, getFullName, getMessage, getName, getNameable1, getNameable2, printStackTrace, printStackTrace, printStackTrace, stackTraceToString
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getStackTrace, initCause, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NoSuchItemException

public NoSuchItemException(java.lang.String detail)
Construct an exception with a detail message.

Parameters:
detail - A message.

NoSuchItemException

public NoSuchItemException(Nameable object,
                           java.lang.String detail)
Construct an exception with a detail message that includes the name of the argument.

Parameters:
object - The object in which the item might have been.
detail - A message.

NoSuchItemException

public NoSuchItemException(Nameable object,
                           java.lang.Throwable cause,
                           java.lang.String detail)
Construct an exception with a cause and a detail message that includes the name of the argument.

Parameters:
object - The object in which the item might have been.
cause - The cause of this exception, or null if the cause is not known or nonexistent.
detail - The message.