Exception: EvolutionApi::ValidationError
- Defined in:
- lib/evolution_api/errors.rb
Overview
Erro de validação
Instance Attribute Summary collapse
-
#errors ⇒ Object
readonly
Returns the value of attribute errors.
Attributes inherited from Error
#error_code, #response, #status_code
Instance Method Summary collapse
-
#initialize(message = 'Erro de validação', response = nil, errors = {}) ⇒ ValidationError
constructor
A new instance of ValidationError.
Constructor Details
#initialize(message = 'Erro de validação', response = nil, errors = {}) ⇒ ValidationError
Returns a new instance of ValidationError.
41 42 43 44 |
# File 'lib/evolution_api/errors.rb', line 41 def initialize( = 'Erro de validação', response = nil, errors = {}) super(, response, 422) @errors = errors end |
Instance Attribute Details
#errors ⇒ Object (readonly)
Returns the value of attribute errors.
39 40 41 |
# File 'lib/evolution_api/errors.rb', line 39 def errors @errors end |