class ReactOnRails::JsonParseError

def initialize(parse_error:, json:)

def initialize(parse_error:, json:)
  @json = json
  @original_error = parse_error
  message = <<~MSG
    #{parse_error.message}
    #{Utils.default_troubleshooting_section}
  MSG
  super(message)
end

def raven_context

def raven_context
  to_error_context
end

def to_error_context

def to_error_context
  {
    original_error: @original_error,
    json: @json
  }
end

def to_honeybadger_context

def to_honeybadger_context
  to_error_context
end