Class UserException


public final class UserException
extends NestedException

An encapsulated exception, thrown by the user. The user can throw any exception. Such an exception should be propagated with the standard java exception mechanism. But to avoid adding a throws clause to nearly every method of the UniT interpreter, which would be very ugly, we encapsulate the real exception into this Exception and throw this new Exception, which need not to be declared, due to its inheritance from RuntimeException. If a UniT template source code catches exceptions, the interpreter must work with the original NOT the encapsulated exception!

See Also:
Serialized Form

Methods inherited from class unit.NestedException
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