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
- GlosomException
- PortalException
- builtins.Exception
- builtins.BaseException
class PortalAPIRequest (*args, **kwargs)
-
Exception raised on API request issues.
Expand source code
class PortalAPIRequest(PortalConnection): """Exception raised on API request issues.""" pass
Ancestors
- PortalConnection
- PortalException
- builtins.Exception
- builtins.BaseException
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
- PortalException
- builtins.Exception
- builtins.BaseException
class PortalConfiguration (*args, **kwargs)
-
Exception raised on configuration issues.
Expand source code
class PortalConfiguration(PortalException): """Exception raised on configuration issues.""" pass
Ancestors
- PortalException
- builtins.Exception
- builtins.BaseException
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
- PortalException
- builtins.Exception
- builtins.BaseException
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