Package ptolemy.actor

Class 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$
    Author:
    Lukito Muliadi
    See Also:
    Receiver, Serialized Form
    Pt.AcceptedRating:
    Green (bart)
    Pt.ProposedRating:
    Green (lmuliadi)
    • Constructor Summary

      Constructors 
      Constructor Description
      NoRoomException​(java.lang.String message)
      Construct an exception with the given error message.
      NoRoomException​(Nameable object, java.lang.String message)
      Construct an exception originating from the given object, with the given error message.
    • 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.