Exception: BisonParser::Error
- Inherits:
-
Exception
- Object
- Exception
- BisonParser::Error
- Defined in:
- lib/bison_parser/base.rb
Instance Attribute Summary collapse
-
#message ⇒ Object
readonly
Returns the value of attribute message.
Instance Method Summary collapse
-
#initialize(msg, source, row, col) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(msg, source, row, col) ⇒ Error
Returns a new instance of Error.
68 69 70 71 |
# File 'lib/bison_parser/base.rb', line 68 def initialize(msg, source, row, col) source ||= '-' = "#{source}:#{row}.#{col} #{msg}" end |
Instance Attribute Details
#message ⇒ Object (readonly)
Returns the value of attribute message.
67 68 69 |
# File 'lib/bison_parser/base.rb', line 67 def end |