FncClient Library Error Types
Any failure in the Client Library is reported as a FncClientError
. This class extends the Exception class and can be imported from fnc.errors
. The exact reason of the failure could be distinguished by looking into its internal fields and specifically its ErrorType. The entire list of identified error types is shown below. Any known error will be wrapped into a FncClientError
with error type GENERIC_ERROR
.
# Client related errors GENERIC_ERROR CLIENT_VALIDATION_ERROR CLIENT_API_TOKEN_VALIDATION_ERROR # Continuous Polling related errors POLLING_VALIDATION_ERROR POLLING_TIME_WINDOW_ERROR POLLING_INVERTED_TIME_WINDOW_ERROR POLLING_EMPTY_TIME_WINDOW_ERROR POLLING_LIMIT_OVERPASSED MISSING_CONTEXT # Endpoint related errors ENDPOINT_ERROR ENDPOINT_VALIDATION_ERROR ENDPOINT_RESPONSE_VALIDATION_ERROR # Request related errors REQUEST_VALIDATION_ERROR REQUEST_CONNECTION_ERROR REQUEST_TIMEOUT_ERROR REQUEST_HTTP_ERROR REQUEST_CLOSING_SESSION_ERROR REQUEST_ERROR # Metastream related errors EVENTS_FETCH_VALIDATION_ERROR EVENTS_UNKNOWN_DATE_PREFIX_FORMAT