Exception: Omnium::Parser::ParseErrorHandler::ParseError
- Inherits:
-
StandardError
- Object
- StandardError
- Omnium::Parser::ParseErrorHandler::ParseError
- Defined in:
- lib/omnium/parser/parse_error_handler.rb
Overview
could possibly break this out if desired…
Instance Attribute Summary collapse
-
#actual_type ⇒ Object
readonly
Returns the value of attribute actual_type.
-
#expected_type ⇒ Object
readonly
Returns the value of attribute expected_type.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ParseError
constructor
A new instance of ParseError.
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] || ) end |
Instance Attribute Details
#actual_type ⇒ Object (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_type ⇒ Object (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 |