Exception: JSON::JSONError
- Inherits:
-
StandardError
- Object
- StandardError
- JSON::JSONError
- Defined in:
- lib/json/common.rb
Overview
The base exception for JSON errors.
Direct Known Subclasses
Class Method Summary collapse
Class Method Details
.wrap(exception) ⇒ Object
107 108 109 110 111 |
# File 'lib/json/common.rb', line 107 def self.wrap(exception) obj = new("Wrapped(#{exception.class}): #{exception..inspect}") obj.set_backtrace exception.backtrace obj end |