Skip to content

# `` exceptions

GraphDB exceptions.

Classes:

- `BadRequestError` –

  Raised when the request is invalid.

- `ConflictError` –

  Raised when the request conflicts with the current state of the server.

- `ForbiddenError` –

  Raised when the user is forbidden.

- `GraphDBError` –

  Base class for GraphDB exceptions.

- `InternalServerError` –

  Raised when the server returns an internal server error.

- `NotFoundError` –

  Raised when the resource is not found.

- `PreconditionFailedError` –

  Raised when the precondition is failed.

- `RepositoryNotFoundError` –

  Raised when the repository is not found.

- `RepositoryNotHealthyError` –

  Raised when the repository is not healthy.

- `ResponseFormatError` –

  Raised when the response format is invalid.

- `ServiceUnavailableError` –

  Raised when the server is unavailable.

- `UnauthorisedError` –

  Raised when the user is unauthorised.

## `` BadRequestError

Bases: `GraphDBError`

Raised when the request is invalid.

## `` ConflictError

Bases: `GraphDBError`

Raised when the request conflicts with the current state of the server.

## `` ForbiddenError

Bases: `GraphDBError`

Raised when the user is forbidden.

## `` GraphDBError

Bases: `Exception`

Base class for GraphDB exceptions.

## `` InternalServerError

Bases: `GraphDBError`

Raised when the server returns an internal server error.

## `` NotFoundError

Bases: `GraphDBError`

Raised when the resource is not found.

## `` PreconditionFailedError

Bases: `GraphDBError`

Raised when the precondition is failed.

## `` RepositoryNotFoundError

Bases: `GraphDBError`, `RepositoryNotFoundError`

Raised when the repository is not found.

## `` RepositoryNotHealthyError

Bases: `GraphDBError`, `RepositoryNotHealthyError`

Raised when the repository is not healthy.

## `` ResponseFormatError

Bases: `GraphDBError`

Raised when the response format is invalid.

## `` ServiceUnavailableError

Bases: `GraphDBError`

Raised when the server is unavailable.

## `` UnauthorisedError

Bases: `GraphDBError`

Raised when the user is unauthorised.