Exception: HaveAPI::Client::ValidationError
- Inherits:
-
ActionFailed
- Object
- StandardError
- ActionFailed
- HaveAPI::Client::ValidationError
- Defined in:
- lib/haveapi/client/exceptions.rb
Instance Attribute Summary collapse
-
#errors ⇒ Object
readonly
Returns the value of attribute errors.
Attributes inherited from ActionFailed
Instance Method Summary collapse
-
#initialize(action, errors) ⇒ ValidationError
constructor
A new instance of ValidationError.
Constructor Details
#initialize(action, errors) ⇒ ValidationError
Returns a new instance of ValidationError.
17 18 19 20 21 22 |
# File 'lib/haveapi/client/exceptions.rb', line 17 def initialize(action, errors) super("#{action.name} failed: input parameters not valid") @action = action @errors = errors end |
Instance Attribute Details
#errors ⇒ Object (readonly)
Returns the value of attribute errors.
15 16 17 |
# File 'lib/haveapi/client/exceptions.rb', line 15 def errors @errors end |