exception string - part-cw/lambdanative GitHub Wiki

(exception->string e)

exception->string converts an exception into readable string.

Parameter Description
e Exception to be converted

Example

Example 1: A safe call procedure from rupi.

(define (rupi:safecall x . y)
  (with-exception-catcher
    (lambda (e) (rupi:log 1 "rupi:safecall : exception: " (exception->string e)) #f)
    (lambda () (apply x y))))