class RestCore::JsonResponse::ParseError
Attributes
body[R]
cause[R]
Public Class Methods
new(cause, body)
click to toggle source
Calls superclass method
# File lib/rest-core/middleware/json_response.rb, line 11 def initialize cause, body msg = cause.message.force_encoding('utf-8') super("#{msg}\nOriginal text: #{body}") @cause, @body = cause, body end