Exception: Poncho::ValidationError
- Inherits:
-
ClientError
- Object
- StandardError
- Error
- ClientError
- Poncho::ValidationError
- Defined in:
- lib/poncho/error.rb
Instance Attribute Summary collapse
-
#errors ⇒ Object
readonly
Returns the value of attribute errors.
Attributes inherited from ClientError
Instance Method Summary collapse
- #as_json ⇒ Object
- #code ⇒ Object
-
#initialize(errors) ⇒ ValidationError
constructor
A new instance of ValidationError.
Methods inherited from Error
Constructor Details
#initialize(errors) ⇒ ValidationError
Returns a new instance of ValidationError.
53 54 55 |
# File 'lib/poncho/error.rb', line 53 def initialize(errors) @errors = errors end |
Instance Attribute Details
#errors ⇒ Object (readonly)
Returns the value of attribute errors.
51 52 53 |
# File 'lib/poncho/error.rb', line 51 def errors @errors end |
Instance Method Details
#as_json ⇒ Object
61 62 63 |
# File 'lib/poncho/error.rb', line 61 def as_json errors end |
#code ⇒ Object
57 58 59 |
# File 'lib/poncho/error.rb', line 57 def code 400 end |