unit
Class UniTRuntimeException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--java.lang.RuntimeException
                    |
                    +--unit.UniTRuntimeException
Direct Known Subclasses:
NestedException

public class UniTRuntimeException
extends java.lang.RuntimeException

All exceptions, that will be explicitly thrown at runtime within the UniT interpreter, are of this type. The most frequent reasons are (like in java): type mismatch, null pointer, unknown identifier and invalid access. Due to the recursive implementation of the interpreter, it would be very ugly to declare any exception in the interpreter, that is NOT derived from RuntimeException, because we would have to add a throws clause to nearly every method of the interpreter or catch the exceptions. Due to its inheritance from RuntimeException, this class need not to be declared or catched Additionally, this way all other RuntimeExceptions, that are not explicitly thrown by the interpreter, can be distinguished and located approximately within the UniT template source code. Such exceptions will be thrown again, but encapsulated within an exception of the class NestedException.

See Also:
Serialized Form

Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getMessage, printStackTrace, printStackTrace, printStackTrace, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait