Package kawa.lang
Class NamedException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
kawa.lang.NamedException
- All Implemented Interfaces:
Serializable
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:
-
Constructor Summary
ConstructorsConstructorDescriptionNamedException
(Symbol name, Object[] args) Assume name==args[1], or name==null. -
Method Summary
Modifier and TypeMethodDescriptionapplyHandler
(Object key, Procedure handler) static NamedException
toString()
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace