koala.dynamicjava.interpreter.error
Class BreakException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by koala.dynamicjava.interpreter.error.BreakException
All Implemented Interfaces:
Serializable

public class BreakException
extends RuntimeException

Thrown to indicate that a break statement has been reached

Version:
1.0 - 1999/05/23
Author:
Stephane Hillion
See Also:
Serialized Form

Constructor Summary
BreakException(String m)
          Constructs an BreakException with the specified detail message.
BreakException(String m, String l)
          Constructs an BreakException with the specified detail message and label.
 
Method Summary
 String getLabel()
          Returns the label of the statement that thrown the exception
 boolean isLabeled()
          Tests whether the statement was labeled
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BreakException

public BreakException(String m)
Constructs an BreakException with the specified detail message.

Parameters:
m - the detail message.

BreakException

public BreakException(String m,
                      String l)
Constructs an BreakException with the specified detail message and label.

Parameters:
m - the detail message.
l - the label
Method Detail

isLabeled

public boolean isLabeled()
Tests whether the statement was labeled


getLabel

public String getLabel()
Returns the label of the statement that thrown the exception