Exception: KRLParseError
- Inherits:
-
StandardError
- Object
- StandardError
- KRLParseError
- Defined in:
- lib/kynetx_am_api/krl_parse_error.rb
Instance Attribute Summary collapse
-
#parse_errors ⇒ Object
readonly
Returns the value of attribute parse_errors.
Instance Method Summary collapse
-
#initialize(msg, errors) ⇒ KRLParseError
constructor
A new instance of KRLParseError.
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_errors ⇒ Object (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 |