Class: JSONSEQ::Reader::ParsingError

Inherits:
Object
  • Object
show all
Defined in:
lib/jsonseq/reader.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(source:, exception:) ⇒ ParsingError



20
21
22
23
# File 'lib/jsonseq/reader.rb', line 20

def initialize(source:, exception:)
  @source = source
  @exception = exception
end

Instance Attribute Details

#exceptionObject (readonly)

Returns the value of attribute exception.



18
19
20
# File 'lib/jsonseq/reader.rb', line 18

def exception
  @exception
end

#sourceObject (readonly)

Returns the value of attribute source.



17
18
19
# File 'lib/jsonseq/reader.rb', line 17

def source
  @source
end