Exception: Chutzen::RuntimeError

Inherits:
StandardError show all
Defined in:
lib/chutzen/runtime_error.rb

Overview

Raised when something went wrong while evaluating a Chutzen expression.

Instance Method Summary collapse

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(message, **details)
  super(message)
  @details = details
end

Instance Method Details

#as_jsonObject



11
12
13
# File 'lib/chutzen/runtime_error.rb', line 11

def as_json
  { 'error' => details }
end