Exception: RestApiClient::ModelErrorsException
- Inherits:
-
StandardError
- Object
- StandardError
- RestApiClient::ModelErrorsException
- Defined in:
- lib/rest/api/exceptions/model_errors_exception.rb
Instance Attribute Summary collapse
-
#errors ⇒ Object
Returns the value of attribute errors.
Instance Method Summary collapse
-
#initialize(errors) ⇒ ModelErrorsException
constructor
A new instance of ModelErrorsException.
Constructor Details
#initialize(errors) ⇒ ModelErrorsException
6 7 8 9 |
# File 'lib/rest/api/exceptions/model_errors_exception.rb', line 6 def initialize(errors) super 'Bad request' @errors = (errors && errors.is_a?(Array)) ? errors.uniq : errors end |
Instance Attribute Details
#errors ⇒ Object
Returns the value of attribute errors.
4 5 6 |
# File 'lib/rest/api/exceptions/model_errors_exception.rb', line 4 def errors @errors end |