Exception: MessageFormat::Parser::SyntaxError

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

Overview

Syntax Error

Holds information about bad syntax found in a message pattern

Instance Attribute Summary collapse

Instance Method Summary collapse

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 (message, expected, found, offset, line, column)
  super(message)
  @expected = expected
  @found = found
  @offset = offset
  @line = line
  @column = column
end

Instance Attribute Details

#columnObject (readonly)

Returns the value of attribute column.



367
368
369
# File 'lib/message_format/parser.rb', line 367

def column
  @column
end

#expectedObject (readonly)

Returns the value of attribute expected.



363
364
365
# File 'lib/message_format/parser.rb', line 363

def expected
  @expected
end

#foundObject (readonly)

Returns the value of attribute found.



364
365
366
# File 'lib/message_format/parser.rb', line 364

def found
  @found
end

#lineObject (readonly)

Returns the value of attribute line.



366
367
368
# File 'lib/message_format/parser.rb', line 366

def line
  @line
end

#offsetObject (readonly)

Returns the value of attribute offset.



365
366
367
# File 'lib/message_format/parser.rb', line 365

def offset
  @offset
end