Skip to content

Commit 3e7e661

Browse files
committed
Get rid of JSONError.wrap
1 parent ff8e183 commit 3e7e661

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

lib/json/common.rb

+1-7
Original file line numberDiff line numberDiff line change
@@ -227,13 +227,7 @@ def self.create_id
227227
MinusInfinity = -Infinity
228228

229229
# 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-
end
230+
class JSONError < StandardError; end
237231

238232
# This exception is raised if a parser error occurs.
239233
class ParserError < JSONError; end

0 commit comments

Comments
 (0)