Exception: SecApi::PermanentError
- Defined in:
- lib/sec_api/errors/permanent_error.rb
Overview
Base class for all non-retryable (permanent) errors.
Design rationale: PermanentError signals the retry middleware to fail immediately without retrying. Retrying a 401 (bad API key) or 404 (nonexistent resource) wastes resources and delays the inevitable failure. Fail fast with a clear message instead.
These errors require human intervention - code changes, configuration fixes, or different input parameters. The same request will always fail.
Permanent errors represent failures that won’t be resolved by retrying, such as authentication failures, validation errors, or resource not found. These errors require code or configuration changes to resolve.
Direct Known Subclasses
AuthenticationError, NotFoundError, PaginationError, ValidationError
Instance Attribute Summary
Attributes inherited from Error
Method Summary
Methods inherited from Error
Constructor Details
This class inherits a constructor from SecApi::Error