Sha256: f06b761f7f19ac47e286ca84d648bff7d094d3563798d43db7d5abc7620ddd41
Contents?: true
Size: 495 Bytes
Versions: 21
Compression:
Stored size: 495 Bytes
Contents
# frozen_string_literal: true module ReactOnRails class JsonParseError < ::ReactOnRails::Error attr_reader :json def initialize(parse_error:, json:) @json = json @original_error = parse_error super(parse_error.message) end def to_honeybadger_context to_error_context end def raven_context to_error_context end def to_error_context { original_error: @original_error, json: @json } end end end
Version data entries
21 entries across 21 versions & 1 rubygems