ptolemy.kernel.util
Class NoSuchItemException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byptolemy.kernel.util.KernelException
              extended byptolemy.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,v 1.28 2004/04/13 03:44:02 cxh Exp $
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.
 
Methods inherited from class ptolemy.kernel.util.KernelException
_setCause, _setMessage, generateMessage, generateMessage, generateMessage, getCause, getFullName, getMessage, getName, 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.