123456789_123456789_123456789_123456789_123456789_

Exception: JSON::JSONError

Relationships & Source Files
Extension / Inclusion / Inheritance Descendants
Subclasses:
Super Chains via Extension / Inclusion / Inheritance
Class Chain:
self, StandardError
Instance Chain:
self, StandardError
Inherits: StandardError
  • ::Object
Defined in: ext/json/lib/json/common.rb

Overview

The base exception for ::JSON errors.

Class Method Summary

Class Method Details

.wrap(exception)

[ GitHub ]

  
# File 'ext/json/lib/json/common.rb', line 142

def self.wrap(exception)
  obj = new("Wrapped(#{exception.class}): #{exception.message.inspect}")
  obj.set_backtrace exception.backtrace
  obj
end