Exception: SabyVok::ParsingError

Inherits:
Error
  • Object
show all
Defined in:
lib/saby_vok/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, body:) ⇒ ParsingError

Returns a new instance of ParsingError.



31
32
33
34
# File 'lib/saby_vok/errors.rb', line 31

def initialize(message, body:)
  super(message)
  @body = body
end

Instance Attribute Details

#bodyObject (readonly)

Returns the value of attribute body.



29
30
31
# File 'lib/saby_vok/errors.rb', line 29

def body
  @body
end