Exception: PoliPage::ValidationError

Inherits:
Error
  • Object
show all
Defined in:
lib/poli_page/errors.rb

Overview

API status errors. ‘status` carries the HTTP status; `code` is the machine-readable string from the response body. The subclass picked for a given status is decided by `PoliPage::Internal::HTTP.classify`.

400 → ValidationError
401 → AuthenticationError
403 → PermissionDeniedError
404 → NotFoundError
410 → GoneError
429 → RateLimitError
other 4xx / 5xx → APIError

Instance Attribute Summary

Attributes inherited from Error

#code, #request_id, #status

Method Summary

Methods inherited from Error

#auth_error?, #initialize, #network_error?, #payload_status, #rate_limit_error?, #retryable?, #to_payload, #validation_error?

Constructor Details

This class inherits a constructor from PoliPage::Error