Exceptions API
The exceptions module provides custom exceptions for the USDA FDC client.
FdcApiError
FdcAuthError
- class usda_fdc.exceptions.FdcAuthError[source]
Bases:
FdcApiErrorException raised when authentication fails.
FdcRateLimitError
- class usda_fdc.exceptions.FdcRateLimitError[source]
Bases:
FdcApiErrorException raised when the API rate limit is exceeded.
FdcValidationError
- class usda_fdc.exceptions.FdcValidationError[source]
Bases:
FdcApiErrorException raised when input validation fails.
FdcResourceNotFoundError
- class usda_fdc.exceptions.FdcResourceNotFoundError[source]
Bases:
FdcApiErrorException raised when a requested resource is not found.