lib/hoth/extension/core/exception.rb in hoth-0.2.2 vs lib/hoth/extension/core/exception.rb in hoth-0.3.0

- old
+ new

@@ -1,11 +1,11 @@ class Exception - def to_json(*a) + def to_json(*params) { 'json_class' => self.class.name, 'message' => self.message, 'backtrace' => self.backtrace - }.to_json(*a) + }.to_json(*params) end def self.json_create(hash) exception = new(hash["message"]) exception.set_backtrace hash['backtrace'] \ No newline at end of file