Exception: Fizzy::ValidationError
- Defined in:
- lib/fizzy/errors.rb
Overview
Raised for validation errors (400, 422).
Instance Attribute Summary
Attributes inherited from Error
#cause, #code, #hint, #http_status, #request_id, #retry_after, #retryable
Instance Method Summary collapse
-
#initialize(message, hint: nil, http_status: 400) ⇒ ValidationError
constructor
A new instance of ValidationError.
Methods inherited from Error
#exit_code, exit_code_for, #retryable?
Constructor Details
#initialize(message, hint: nil, http_status: 400) ⇒ ValidationError
Returns a new instance of ValidationError.
236 237 238 239 240 241 242 243 |
# File 'lib/fizzy/errors.rb', line 236 def initialize(, hint: nil, http_status: 400) super( code: ErrorCode::VALIDATION, message: , hint: hint, http_status: http_status ) end |