module Klam::Primitives::ErrorHandling
Public Instance Methods
error_to_string(err)
click to toggle source
trap-error is a special form and implemented in the compiler
# File lib/klam/primitives/error_handling.rb, line 12 def error_to_string(err) if value(:"*include-backtrace-in-error-string*") ([err.message] + err.backtrace).join("\n") else err.message end end
Also aliased as: "error-to-string"
simple_error(msg)
click to toggle source
# File lib/klam/primitives/error_handling.rb, line 4 def simple_error(msg) ::Kernel.raise ::Klam::Error, msg end
Also aliased as: "simple-error"