ptolemy.actor
Class NoRoomException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjava.lang.RuntimeException
              extended byptolemy.kernel.util.KernelRuntimeException
                  extended byptolemy.actor.NoRoomException
All Implemented Interfaces:
java.io.Serializable

public class NoRoomException
extends KernelRuntimeException

This exception is thrown when an attempt is made to put a token into a receiver that does not have room to accommodate one. To avoid this exception, code should use the hasRoom() method in the Receiver interface to determine whether there is room for a token.

Since:
Ptolemy II 0.2
Version:
$Id: NoRoomException.java,v 1.23 2004/04/13 02:57:57 cxh Exp $
Author:
Lukito Muliadi
See Also:
Receiver, Serialized Form
Accepted Rating:
Green (bart)
Proposed Rating:
Green (lmuliadi)

Constructor Summary
NoRoomException(Nameable object, java.lang.String message)
          Construct an exception originating from the given object, with the given error message.
NoRoomException(java.lang.String message)
          Construct an exception with the given error message.
 
Methods inherited from class ptolemy.kernel.util.KernelRuntimeException
_setCause, _setMessage, getCause, getMessage, printStackTrace, printStackTrace, printStackTrace
 
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

NoRoomException

public NoRoomException(java.lang.String message)
Construct an exception with the given error message.

Parameters:
message - The message.

NoRoomException

public NoRoomException(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.