Exception: Mxrb::Environment::ParseError

Inherits:
Error
  • Object
show all
Defined in:
lib/mxrb/environment.rb

Overview

Syntax error with location but never with the offending secret value.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(path, line, reason) ⇒ ParseError

Returns a new instance of ParseError.



16
17
18
19
20
# File 'lib/mxrb/environment.rb', line 16

def initialize(path, line, reason)
  @path = path
  @line = line
  super("invalid environment file #{path}:#{line}: #{reason}")
end

Instance Attribute Details

#lineObject (readonly)

Returns the value of attribute line.



14
15
16
# File 'lib/mxrb/environment.rb', line 14

def line
  @line
end

#pathObject (readonly)

Returns the value of attribute path.



14
15
16
# File 'lib/mxrb/environment.rb', line 14

def path
  @path
end