Exception: Pictify::RenderError
- Defined in:
- lib/pictify/errors.rb
Overview
Raised when a render fails or input validation fails (HTTP 422, and other non-quota 4xx). Carries field-level errors from the API when present.
Instance Attribute Summary collapse
-
#errors ⇒ Object
readonly
Returns the value of attribute errors.
Attributes inherited from Error
Instance Method Summary collapse
-
#initialize(message = nil, errors: nil, **kwargs) ⇒ RenderError
constructor
A new instance of RenderError.
Methods inherited from Error
Constructor Details
#initialize(message = nil, errors: nil, **kwargs) ⇒ RenderError
Returns a new instance of RenderError.
87 88 89 90 |
# File 'lib/pictify/errors.rb', line 87 def initialize( = nil, errors: nil, **kwargs) @errors = errors super(, **kwargs) end |
Instance Attribute Details
#errors ⇒ Object (readonly)
Returns the value of attribute errors.
85 86 87 |
# File 'lib/pictify/errors.rb', line 85 def errors @errors end |