org.jext.dawn
Class DawnRuntimeException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byorg.jext.dawn.DawnRuntimeException
All Implemented Interfaces:
java.io.Serializable

public class DawnRuntimeException
extends java.lang.Exception

DawnRuntimeException is thrown whenever a function encounter an error. Basically, this exception is thrown if a function is not implemented. Yet, many functions will use it to warn user (i.e: empty stack, not enough arguments, etc...).

See Also:
Serialized Form

Constructor Summary
DawnRuntimeException(DawnParser parser, java.lang.String message)
          Create a new exception.
DawnRuntimeException(Function function, DawnParser parser, java.lang.String message)
          Create a new exception.
 
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

DawnRuntimeException

public DawnRuntimeException(DawnParser parser,
                            java.lang.String message)
Create a new exception. The message is built here to avoid keeping pointers to many other objects.

Parameters:
parser - The DawnParser responsible of the invocation
message - A short description of the error

DawnRuntimeException

public DawnRuntimeException(Function function,
                            DawnParser parser,
                            java.lang.String message)
Create a new exception. The message is built here to avoid keeping pointers to many other objects.

Parameters:
function - The Function which thrown the exception
parser - The DawnParser responsible of the invocation
message - A short description of the error


Copyright ? 2002 Romain Guy.