Exception: Omnium::Parser::ParseErrorHandler::ParseError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/omnium/parser/parse_error_handler.rb

Overview

could possibly break this out if desired…

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ParseError

Returns a new instance of ParseError.



20
21
22
23
24
25
# File 'lib/omnium/parser/parse_error_handler.rb', line 20

def initialize(**args)
  @actual_type = args[:actual_type]
  @expected_type = args[:expected_type]

  super(args[:message] || default_message)
end

Instance Attribute Details

#actual_typeObject (readonly)

Returns the value of attribute actual_type.



18
19
20
# File 'lib/omnium/parser/parse_error_handler.rb', line 18

def actual_type
  @actual_type
end

#expected_typeObject (readonly)

Returns the value of attribute expected_type.



18
19
20
# File 'lib/omnium/parser/parse_error_handler.rb', line 18

def expected_type
  @expected_type
end