gidgetlab.exceptions
— Exceptions
Gidgetlab’s exceptions
- exception gidgetlab.exceptions.GitLabException
Base exception for this library.
- exception gidgetlab.exceptions.ValidationFailure
An exception representing failed validation of a webhook event.
- exception gidgetlab.exceptions.HTTPException(status_code, *args)
A general exception to represent HTTP responses.
- exception gidgetlab.exceptions.RedirectionException(status_code, *args)
Exception for 3XX HTTP responses.
- exception gidgetlab.exceptions.BadRequest(status_code, *args)
The request is invalid.
Used for 4XX HTTP errors.
- exception gidgetlab.exceptions.RateLimitExceeded(rate_limit, *args)
Request rejected due to the rate limit being exceeded.
- exception gidgetlab.exceptions.InvalidField(errors, *args)
A field in the request is invalid.
Represented by a 422 HTTP Response. Details of what fields were invalid are stored in the errors attribute.
- exception gidgetlab.exceptions.GitLabBroken(status_code, *args)
Exception for 5XX HTTP responses.
- exception gidgetlab.exceptions.GraphQLException(message, response)
Base exception for the GraphQL v4 API.
- exception gidgetlab.exceptions.BadGraphQLRequest(status_code, response)
A 4XX HTTP response.
- exception gidgetlab.exceptions.GraphQLAuthorizationFailure(response)
401 HTTP response to a bad oauth token.
- exception gidgetlab.exceptions.QueryError(response)
An error occurred while attempting to handle a GraphQL v4 query.
- exception gidgetlab.exceptions.GraphQLResponseTypeError(content_type, response)
The GraphQL response has an unexpected content type.