class ReactOnRails::JsonParseError

Attributes

json[R]

Public Class Methods

new(parse_error:, json:) click to toggle source
Calls superclass method
# File lib/react_on_rails/json_parse_error.rb, line 7
def initialize(parse_error:, json:)
  @json = json
  @original_error = parse_error
  super(parse_error.message)
end

Public Instance Methods

raven_context() click to toggle source
# File lib/react_on_rails/json_parse_error.rb, line 17
def raven_context
  to_error_context
end
to_error_context() click to toggle source
# File lib/react_on_rails/json_parse_error.rb, line 21
def to_error_context
  {
    original_error: @original_error,
    json: @json
  }
end
to_honeybadger_context() click to toggle source
# File lib/react_on_rails/json_parse_error.rb, line 13
def to_honeybadger_context
  to_error_context
end