Class StopCommand

  • All Implemented Interfaces:
    java.io.Serializable

    public class StopCommand
    extends java.lang.Error
    Stop command for directive Control objects. In an ideal JDK, this would be able to extend a RuntimeThrowable class, but we don't have that. So to avoid the interface changes needed by extending Throwable and the potential errant catches were we to extend RuntimeException, we'll have to extend Error, despite the fact that this is never an error.
    Version:
    $Id$
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private boolean nearest  
      private static long serialVersionUID  
      private java.lang.Object stopMe  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getMessage()  
      boolean isFor​(java.lang.Object that)  
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • stopMe

        private java.lang.Object stopMe
      • nearest

        private boolean nearest
    • Constructor Detail

      • StopCommand

        public StopCommand()
      • StopCommand

        public StopCommand​(java.lang.String message)
      • StopCommand

        public StopCommand​(java.lang.Object stopMe)
    • Method Detail

      • getMessage

        public java.lang.String getMessage()
        Overrides:
        getMessage in class java.lang.Throwable
      • isFor

        public boolean isFor​(java.lang.Object that)