Package ptolemy.kernel.util
Class NoSuchItemException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- ptolemy.kernel.util.KernelException
-
- 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$
- Author:
- Edward A. Lee
- See Also:
- Serialized Form
- Pt.AcceptedRating:
- Green (cxh)
- Pt.ProposedRating:
- Green (cxh)
-
-
Constructor Summary
Constructors Constructor Description NoSuchItemException(java.lang.String detail)
Construct an exception with a detail message.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.
-
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
-
-
-
-
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.
-
-