Exception: Fizzy::ValidationError

Inherits:
Error
  • Object
show all
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

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(message, hint: nil, http_status: 400)
  super(
    code: ErrorCode::VALIDATION,
    message: message,
    hint: hint,
    http_status: http_status
  )
end