Exception: MessageFormat::Parser::SyntaxError
- Inherits:
-
StandardError
- Object
- StandardError
- MessageFormat::Parser::SyntaxError
- Defined in:
- lib/message_format/parser.rb
Overview
Syntax Error
Holds information about bad syntax found in a pattern
Instance Attribute Summary collapse
-
#column ⇒ Object
readonly
Returns the value of attribute column.
-
#expected ⇒ Object
readonly
Returns the value of attribute expected.
-
#found ⇒ Object
readonly
Returns the value of attribute found.
-
#line ⇒ Object
readonly
Returns the value of attribute line.
-
#offset ⇒ Object
readonly
Returns the value of attribute offset.
Instance Method Summary collapse
-
#initialize(message, expected, found, offset, line, column) ⇒ SyntaxError
constructor
A new instance of SyntaxError.
Constructor Details
#initialize(message, expected, found, offset, line, column) ⇒ SyntaxError
Returns a new instance of SyntaxError.
369 370 371 372 373 374 375 376 |
# File 'lib/message_format/parser.rb', line 369 def initialize (, expected, found, offset, line, column) super() @expected = expected @found = found @offset = offset @line = line @column = column end |
Instance Attribute Details
#column ⇒ Object (readonly)
Returns the value of attribute column.
367 368 369 |
# File 'lib/message_format/parser.rb', line 367 def column @column end |
#expected ⇒ Object (readonly)
Returns the value of attribute expected.
363 364 365 |
# File 'lib/message_format/parser.rb', line 363 def expected @expected end |
#found ⇒ Object (readonly)
Returns the value of attribute found.
364 365 366 |
# File 'lib/message_format/parser.rb', line 364 def found @found end |
#line ⇒ Object (readonly)
Returns the value of attribute line.
366 367 368 |
# File 'lib/message_format/parser.rb', line 366 def line @line end |
#offset ⇒ Object (readonly)
Returns the value of attribute offset.
365 366 367 |
# File 'lib/message_format/parser.rb', line 365 def offset @offset end |