Package ptolemy.actor
Class NoTokenException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- ptolemy.kernel.util.KernelRuntimeException
-
- ptolemy.actor.NoTokenException
-
- All Implemented Interfaces:
java.io.Serializable
public class NoTokenException extends KernelRuntimeException
This exception is thrown when an attempt is made to get a token from a receiver that does not contain one. To avoid this exception, code should use the hasToken() method in the Receiver interface to determine if there is a token waiting.- Since:
- Ptolemy II 0.2
- Version:
- $Id$
- Author:
- Lukito Muliadi
- See Also:
Receiver
, Serialized Form- Pt.AcceptedRating:
- Green (neuendor)
- Pt.ProposedRating:
- Green (lmuliadi)
-
-
Constructor Summary
Constructors Constructor Description NoTokenException(java.lang.String message)
Deprecated.Use NoTokenException(Nameable, String) so that the UI can indicate which actor caused the error.NoTokenException(Nameable object, java.lang.String message)
Construct an exception originating from the given object, with the given error message.NoTokenException(Nameable object, java.lang.Throwable cause, java.lang.String message)
Construct an exception originating from the given object, with the given error message.
-
Method Summary
-
Methods inherited from class ptolemy.kernel.util.KernelRuntimeException
_setCause, _setMessage, getCause, getMessage, getNameables, printStackTrace, printStackTrace, printStackTrace
-
-
-
-
Constructor Detail
-
NoTokenException
@Deprecated public NoTokenException(java.lang.String message)
Deprecated.Use NoTokenException(Nameable, String) so that the UI can indicate which actor caused the error.Construct an exception with the given message.- Parameters:
message
- The message.
-
NoTokenException
public NoTokenException(Nameable object, java.lang.String message)
Construct an exception originating from the given object, with the given error message.- Parameters:
object
- The originating object.message
- The message.
-
NoTokenException
public NoTokenException(Nameable object, java.lang.Throwable cause, java.lang.String message)
Construct an exception originating from the given object, with the given error message.- Parameters:
object
- The originating object.cause
- The cause of this exception.message
- The message.
-
-