Errors

exception schedy.errors.SchedyError[source]

Base class for all Schedy exceptions.

exception schedy.errors.HTTPError(body, code, *args)[source]

Base class for exceptions caused by a transaction with the service.

Parameters:
  • body (str) – Error message.
  • code (int or None) – HTTP status code.
  • args (list) – Other arguments passed to Exception.
exception schedy.errors.ClientError(body, code, *args)[source]

Exception caused by the client side.

Parameters:
  • body (str) – Error message.
  • code (int or None) – HTTP status code.
  • args (list) – Other arguments passed to Exception.
exception schedy.errors.ClientRequestError(body, code, *args)[source]

Exception caused by the content of the request.

Parameters:
  • body (str) – Error message.
  • code (int or None) – HTTP status code.
  • args (list) – Other arguments passed to Exception.
exception schedy.errors.AuthenticationError(body, code, *args)[source]

Authentication error, access to the resource is forbidden.

Parameters:
  • body (str) – Error message.
  • code (int or None) – HTTP status code.
  • args (list) – Other arguments passed to Exception.
exception schedy.errors.ReauthenticateError(body, code, *args)[source]

Authentication error, the client should retry after authenticating again.

Parameters:
  • body (str) – Error message.
  • code (int or None) – HTTP status code.
  • args (list) – Other arguments passed to Exception.
exception schedy.errors.ResourceExistsError(body, code, *args)[source]

The resource cannot be created because it exists already.

Parameters:
  • body (str) – Error message.
  • code (int or None) – HTTP status code.
  • args (list) – Other arguments passed to Exception.
exception schedy.errors.UnsafeUpdateError(body, code, *args)[source]

The resource cannot be updated safely because it has been modified by another client since its state was retrieved, so updating it could overwrite these modifications.

Parameters:
  • body (str) – Error message.
  • code (int or None) – HTTP status code.
  • args (list) – Other arguments passed to Exception.
exception schedy.errors.NoJobError(body, code, *args)[source]

The request could not return any job.

Parameters:
  • body (str) – Error message.
  • code (int or None) – HTTP status code.
  • args (list) – Other arguments passed to Exception.
exception schedy.errors.UnhandledResponseError(body, code, *args)[source]

The response could not be parsed or handled.

Parameters:
  • body (str) – Error message.
  • code (int or None) – HTTP status code.
  • args (list) – Other arguments passed to Exception.
exception schedy.errors.ServerError(body, code, *args)[source]

Server-side exception.

Parameters:
  • body (str) – Error message.
  • code (int or None) – HTTP status code.
  • args (list) – Other arguments passed to Exception.