Exception: Moloni::APIError
- Inherits:
-
StandardError
- Object
- StandardError
- Moloni::APIError
- Defined in:
- lib/moloni/errors.rb
Instance Attribute Summary collapse
-
#errors ⇒ Object
readonly
Returns the value of attribute errors.
Instance Method Summary collapse
-
#initialize(message, errors = []) ⇒ APIError
constructor
A new instance of APIError.
Constructor Details
#initialize(message, errors = []) ⇒ APIError
Returns a new instance of APIError.
13 14 15 16 |
# File 'lib/moloni/errors.rb', line 13 def initialize(, errors = []) super() @errors = errors end |
Instance Attribute Details
#errors ⇒ Object (readonly)
Returns the value of attribute errors.
11 12 13 |
# File 'lib/moloni/errors.rb', line 11 def errors @errors end |