Exception: Chutzen::RuntimeError
- Inherits:
-
StandardError
- Object
- StandardError
- StandardError
- Chutzen::RuntimeError
- Defined in:
- lib/chutzen/runtime_error.rb
Overview
Raised when something went wrong while evaluating a Chutzen expression.
Instance Method Summary collapse
- #as_json ⇒ Object
-
#initialize(message, **details) ⇒ RuntimeError
constructor
A new instance of RuntimeError.
Constructor Details
#initialize(message, **details) ⇒ RuntimeError
Returns a new instance of RuntimeError.
6 7 8 9 |
# File 'lib/chutzen/runtime_error.rb', line 6 def initialize(, **details) super() @details = details end |
Instance Method Details
#as_json ⇒ Object
11 12 13 |
# File 'lib/chutzen/runtime_error.rb', line 11 def as_json { 'error' => details } end |