org.millscript.commons.alert
Class EscapeException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.millscript.commons.alert.EscapeException
All Implemented Interfaces:
java.io.Serializable

public final class EscapeException
extends java.lang.RuntimeException

Thrown specifically to escape to the top-level.

See Also:
Serialized Form

Constructor Summary
EscapeException(Alert a)
          Constructs a new exception for the specified alert.
 
Method Summary
 Alert getAlert()
          Returns the alert that caused this exception.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EscapeException

public EscapeException(Alert a)
Constructs a new exception for the specified alert.

Parameters:
a - the alert which lead to this exception
Method Detail

getAlert

public Alert getAlert()
Returns the alert that caused this exception.

Returns:
the Alert that caused this expcetion.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Throwable
See Also:
Throwable.toString()


Copyright © 2005-2007 Open World Ltd. All Rights Reserved.