Class: Fop::Parser::Error

Inherits:
Struct
  • Object
show all
Defined in:
lib/fop/parser.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#messageObject

Returns the value of attribute message

Returns:

  • (Object)

    the current value of message



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

def message
  @message
end

#tokenObject

Returns the value of attribute token

Returns:

  • (Object)

    the current value of token



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

def token
  @token
end

#typeObject

Returns the value of attribute type

Returns:

  • (Object)

    the current value of type



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

def type
  @type
end

Instance Method Details

#to_sObject



19
20
21
# File 'lib/fop/parser.rb', line 19

def to_s
  "#{type.to_s.capitalize} error: #{message} at column #{token.pos}"
end