Sha256: 532dcc572b104c8541d50348fe917a57337f92f1ff3ff1d84eeefab2d381a867
Contents?: true
Size: 380 Bytes
Versions: 4
Compression:
Stored size: 380 Bytes
Contents
class Exception def to_json(*params) as_json(*params).to_json(*params) end def as_json(*params) { 'json_class' => self.class.name, 'message' => self.message, 'backtrace' => self.backtrace } end def self.json_create(hash) exception = new(hash["message"]) exception.set_backtrace hash['backtrace'] exception end end
Version data entries
4 entries across 4 versions & 1 rubygems