swh.graphql.errors package#

Submodules#

Module contents#

exception swh.graphql.errors.ObjectNotFoundError(message, errors=None)[source]#

Bases: Exception

msg: str = 'Object error'#
exception swh.graphql.errors.PaginationError(message, errors=None)[source]#

Bases: Exception

msg: str = 'Pagination error'#
exception swh.graphql.errors.InvalidInputError(message, errors=None)[source]#

Bases: Exception

msg: str = 'Input error'#
exception swh.graphql.errors.NullableObjectError[source]#

Bases: Exception

exception swh.graphql.errors.DataError(message, errors=None)[source]#

Bases: Exception

msg: str = 'Storage data error'#
swh.graphql.errors.format_error(error: GraphQLError | GraphQLSyntaxError, debug: bool = False)[source]#

Response error formatting

swh.graphql.errors.on_auth_error(request: Request, exc: Exception)[source]#