Exception: Exception
- Defined in:
- lib/hoth/extension/core/exception.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.json_create(hash) ⇒ Object
10 11 12 13 14 |
# File 'lib/hoth/extension/core/exception.rb', line 10 def self.json_create(hash) exception = new(hash["message"]) exception.set_backtrace hash['backtrace'] exception end |
Instance Method Details
#to_json(*params) ⇒ Object
2 3 4 5 6 7 8 |
# File 'lib/hoth/extension/core/exception.rb', line 2 def to_json(*params) { 'json_class' => self.class.name, 'message' => self., 'backtrace' => self.backtrace }.to_json(*params) end |