Package kawa.lang
Class NamedException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- kawa.lang.NamedException
-
- All Implemented Interfaces:
Serializable
public class NamedException extends RuntimeException
Used to implement R7RS "error object" as created by the error procedure. Also used to implement catch/throw named handlers as in Guile: (catch 'key (lambda () ... (throw 'key ARGS ...) ...) (lambda (KEY ARGS ...) HANDLER))- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description NamedException(Symbol name, Object[] args)
Assume name==args[1], or name==null.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
applyHandler(Object key, Procedure handler)
LList
getObjectIrritants()
Object
getObjectMessage()
static NamedException
makeError(Object... args)
String
toString()
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
-