Skip to content

Module yajaw.exceptions

Basic import statement for the module is:

from yajaw import exceptions

Module description

Module responsible for the definition of yajaw exceptions.

HttpClientError

Bases: YajawError

Base class for errors associated with a HTTP Status Code 4xx. Error is derived from super class YajawError.

Source code in yajaw/exceptions.py
class HttpClientError(YajawError):
    """
    Base class for errors associated with a HTTP Status Code 4xx.
    Error is derived from super class YajawError.
    """

HttpServerError

Bases: YajawError

Base class for errors associated with a HTTP Status Code 5xx. Error is derived from super class HttpClientError.

Source code in yajaw/exceptions.py
class HttpServerError(YajawError):
    """
    Base class for errors associated with a HTTP Status Code 5xx.
    Error is derived from super class HttpClientError.
    """

InvalidResponseError

Bases: YajawError

Response received is not valid. It is usually raised from underlying problems, such as runtime errors in HTTP requests, or processing the received results. Error is derived from super class YajawError.

Source code in yajaw/exceptions.py
class InvalidResponseError(YajawError):
    """
    Response received is not valid. It is usually raised from
    underlying problems, such as runtime errors in HTTP requests,
    or processing the received results.
    Error is derived from super class YajawError.
    """

ResourceForbiddenError

Bases: HttpClientError

Authenticated user is forbidden from access the resource. Error is derived from super class HttpClientError.

Source code in yajaw/exceptions.py
class ResourceForbiddenError(HttpClientError):
    """
    Authenticated user is forbidden from access the resource.
    Error is derived from super class HttpClientError.
    """

ResourceMethodNotAllowedError

Bases: HttpClientError

Requested resource does not support the informed HTTP method. Low level error for internal modules use. Error is derived from super class HttpClientError.

Source code in yajaw/exceptions.py
class ResourceMethodNotAllowedError(HttpClientError):
    """
    Requested resource does not support the informed HTTP method.
    Low level error for internal modules use.
    Error is derived from super class HttpClientError.
    """

ResourceNotFoundError

Bases: HttpClientError

Requested resource could not be found as informed. Error is derived from super class HttpClientError.

Source code in yajaw/exceptions.py
class ResourceNotFoundError(HttpClientError):
    """
    Requested resource could not be found as informed.
    Error is derived from super class HttpClientError.
    """

ResourceUnauthorizedError

Bases: HttpClientError

Authenticated user is unauthorized from access the resource. Error is derived from super class HttpClientError.

Source code in yajaw/exceptions.py
class ResourceUnauthorizedError(HttpClientError):
    """
    Authenticated user is unauthorized from access the resource.
    Error is derived from super class HttpClientError.
    """

YajawError

Bases: Exception

Base class for yajaw errors. Error is derived from super class Exception.

Source code in yajaw/exceptions.py
class YajawError(Exception):
    """
    Base class for yajaw errors.
    Error is derived from super class Exception.
    """