We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ff8e183 commit 3e7e661Copy full SHA for 3e7e661
lib/json/common.rb
@@ -227,13 +227,7 @@ def self.create_id
227
MinusInfinity = -Infinity
228
229
# The base exception for JSON errors.
230
- class JSONError < StandardError
231
- def self.wrap(exception)
232
- obj = new("Wrapped(#{exception.class}): #{exception.message.inspect}")
233
- obj.set_backtrace exception.backtrace
234
- obj
235
- end
236
+ class JSONError < StandardError; end
237
238
# This exception is raised if a parser error occurs.
239
class ParserError < JSONError; end
0 commit comments