dcso.portal.exceptions API documentation

Module dcso.portal.exceptions

Definition of exceptions raised by the dcso.portal module.

Expand source code
# Copyright (c) 2020, DCSO GmbH

"""
Definition of exceptions raised by the `dcso.portal` module.
"""

from dcso.glosom.glosom import GlosomException


class PortalException(Exception):
    """Base exception for Portal related exceptions."""
    pass


class PortalConnection(PortalException):
    """Exception raised on any kind of connection issue."""
    pass


class PortalConfiguration(PortalException):
    """Exception raised on configuration issues."""
    pass


class PortalAPIRequest(PortalConnection):
    """Exception raised on API request issues."""
    pass


class PortalAPIError(GlosomException, PortalException):
    """Exception raised with the error received from the API."""


class PortalAPIResponse(PortalException):
    """Exception raised when API response is not valid or could not be used."""

Classes

class PortalAPIError (glosom: Glosom)

Exception raised with the error received from the API.

Expand source code
class PortalAPIError(GlosomException, PortalException):
    """Exception raised with the error received from the API."""

Ancestors

class PortalAPIRequest (*args, **kwargs)

Exception raised on API request issues.

Expand source code
class PortalAPIRequest(PortalConnection):
    """Exception raised on API request issues."""
    pass

Ancestors

class PortalAPIResponse (*args, **kwargs)

Exception raised when API response is not valid or could not be used.

Expand source code
class PortalAPIResponse(PortalException):
    """Exception raised when API response is not valid or could not be used."""

Ancestors

class PortalConfiguration (*args, **kwargs)

Exception raised on configuration issues.

Expand source code
class PortalConfiguration(PortalException):
    """Exception raised on configuration issues."""
    pass

Ancestors

class PortalConnection (*args, **kwargs)

Exception raised on any kind of connection issue.

Expand source code
class PortalConnection(PortalException):
    """Exception raised on any kind of connection issue."""
    pass

Ancestors

Subclasses

class PortalException (*args, **kwargs)

Base exception for Portal related exceptions.

Expand source code
class PortalException(Exception):
    """Base exception for Portal related exceptions."""
    pass

Ancestors

  • builtins.Exception
  • builtins.BaseException

Subclasses