Exception: HaveAPI::Client::ValidationError

Inherits:
ActionFailed
  • Object
show all
Defined in:
lib/haveapi/client/exceptions.rb

Instance Attribute Summary collapse

Attributes inherited from ActionFailed

#response

Instance Method Summary collapse

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

#errorsObject (readonly)

Returns the value of attribute errors.



15
16
17
# File 'lib/haveapi/client/exceptions.rb', line 15

def errors
  @errors
end