Module: Klam::Primitives::ErrorHandling
- Included in:
- Environment
- Defined in:
- lib/klam/primitives/error_handling.rb
Instance Method Summary collapse
-
#error_to_string(err) ⇒ Object
(also: #error-to-string)
trap-error is a special form and implemented in the compiler.
- #simple_error(msg) ⇒ Object (also: #simple-error)
Instance Method Details
#error_to_string(err) ⇒ Object Also known as: error-to-string
trap-error is a special form and implemented in the compiler
12 13 14 15 16 17 18 |
# File 'lib/klam/primitives/error_handling.rb', line 12 def error_to_string(err) if value(:"*include-backtrace-in-error-string*") ([err.] + err.backtrace).join("\n") else err. end end |