Exception: KRLParseError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/kynetx_am_api/krl_parse_error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(msg, errors) ⇒ KRLParseError

Returns a new instance of KRLParseError.



5
6
7
8
9
10
11
12
13
# File 'lib/kynetx_am_api/krl_parse_error.rb', line 5

def initialize(msg, errors)
  if errors.class == Array
    @parse_errors = errors
  else
    @parse_errors = errors.to_s
  end

  super(msg)
end

Instance Attribute Details

#parse_errorsObject (readonly)

Returns the value of attribute parse_errors.



3
4
5
# File 'lib/kynetx_am_api/krl_parse_error.rb', line 3

def parse_errors
  @parse_errors
end