Exceptions

ClientErrorException

Bases: Exception

Base class for client-side HTTP exceptions (4xx).

Source code in src/alpha/exceptions.py
class ClientErrorException(Exception):
    """Base class for client-side HTTP exceptions (4xx)."""

BadRequestException

Bases: ClientErrorException

Equivalent to HTTP code 400

Source code in src/alpha/exceptions.py
class BadRequestException(ClientErrorException):
    """Equivalent to HTTP code 400"""

UnauthorizedException

Bases: ClientErrorException

Equivalent to HTTP code 401

Source code in src/alpha/exceptions.py
class UnauthorizedException(ClientErrorException):
    """Equivalent to HTTP code 401"""

ForbiddenException

Bases: ClientErrorException

Equivalent to HTTP code 403

Source code in src/alpha/exceptions.py
class ForbiddenException(ClientErrorException):
    """Equivalent to HTTP code 403"""

NotFoundException

Bases: ClientErrorException

Equivalent to HTTP code 404

Source code in src/alpha/exceptions.py
class NotFoundException(ClientErrorException):
    """Equivalent to HTTP code 404"""

MethodNotAllowedException

Bases: ClientErrorException

Equivalent to HTTP code 405

Source code in src/alpha/exceptions.py
class MethodNotAllowedException(ClientErrorException):
    """Equivalent to HTTP code 405"""

NotAcceptableException

Bases: ClientErrorException

Equivalent to HTTP code 406

Source code in src/alpha/exceptions.py
class NotAcceptableException(ClientErrorException):
    """Equivalent to HTTP code 406"""

ConflictException

Bases: ClientErrorException

Equivalent to HTTP code 409

Source code in src/alpha/exceptions.py
class ConflictException(ClientErrorException):
    """Equivalent to HTTP code 409"""

PayloadTooLargeException

Bases: ClientErrorException

Equivalent to HTTP code 413

Source code in src/alpha/exceptions.py
class PayloadTooLargeException(ClientErrorException):
    """Equivalent to HTTP code 413"""

UnprocessableContentException

Bases: ClientErrorException

Equivalent to HTTP code 422

Source code in src/alpha/exceptions.py
class UnprocessableContentException(ClientErrorException):
    """Equivalent to HTTP code 422"""

ServerErrorException

Bases: Exception

Base class for server-side HTTP exceptions (5xx).

Source code in src/alpha/exceptions.py
class ServerErrorException(Exception):
    """Base class for server-side HTTP exceptions (5xx)."""

InternalServerErrorException

Bases: ServerErrorException

Equivalent to HTTP code 500

Source code in src/alpha/exceptions.py
class InternalServerErrorException(ServerErrorException):
    """Equivalent to HTTP code 500"""

NotImplementedException

Bases: ServerErrorException

Equivalent to HTTP code 501

Source code in src/alpha/exceptions.py
class NotImplementedException(ServerErrorException):
    """Equivalent to HTTP code 501"""

BadGatewayException

Bases: ServerErrorException

Equivalent to HTTP code 502

Source code in src/alpha/exceptions.py
class BadGatewayException(ServerErrorException):
    """Equivalent to HTTP code 502"""

ServiceUnavailableException

Bases: ServerErrorException

Equivalent to HTTP code 503

Source code in src/alpha/exceptions.py
class ServiceUnavailableException(ServerErrorException):
    """Equivalent to HTTP code 503"""

GatewayTimeoutException

Bases: ServerErrorException

Equivalent to HTTP code 504

Source code in src/alpha/exceptions.py
class GatewayTimeoutException(ServerErrorException):
    """Equivalent to HTTP code 504"""

MissingConfigurationException

Bases: Exception

Raised when a required configuration is missing.

Source code in src/alpha/exceptions.py
class MissingConfigurationException(Exception):
    """Raised when a required configuration is missing."""

InvalidAttributeError

Bases: Exception

Raised when a required attribute is invalid.

Source code in src/alpha/exceptions.py
class InvalidAttributeError(Exception):
    """Raised when a required attribute is invalid."""

MissingDependencyException

Bases: Exception

Raised when a required dependency is missing.

Source code in src/alpha/exceptions.py
class MissingDependencyException(Exception):
    """Raised when a required dependency is missing."""

DatabaseMapperError

Bases: Exception

Raised when there is an error in the database mapping process.

Source code in src/alpha/exceptions.py
class DatabaseMapperError(Exception):
    """Raised when there is an error in the database mapping process."""

DatabaseSessionError

Bases: InternalServerErrorException

Raised when there is an error with the database session.

Source code in src/alpha/exceptions.py
class DatabaseSessionError(InternalServerErrorException):
    """Raised when there is an error with the database session."""

InstrumentedAttributeMissing

Bases: Exception

Raised when an expected instrumented attribute is missing in the ORM model.

Source code in src/alpha/exceptions.py
class InstrumentedAttributeMissing(Exception):
    """Raised when an expected instrumented attribute is missing in the ORM model."""

AlreadyExistsException

Bases: ForbiddenException

Raised when attempting to create a resource that already exists.

Source code in src/alpha/exceptions.py
class AlreadyExistsException(ForbiddenException):
    """Raised when attempting to create a resource that already exists."""

TypingFactoryException

Bases: Exception

Raised when there is an error in the typing factory process.

Source code in src/alpha/exceptions.py
class TypingFactoryException(Exception):
    """Raised when there is an error in the typing factory process."""

ModelClassFactoryException

Bases: Exception

Raised when there is an error in the model class factory process.

Source code in src/alpha/exceptions.py
class ModelClassFactoryException(Exception):
    """Raised when there is an error in the model class factory process."""

DefaultFactoryException

Bases: Exception

Raised when there is an error in the default factory process.

Source code in src/alpha/exceptions.py
class DefaultFactoryException(Exception):
    """Raised when there is an error in the default factory process."""

ObjectConversionNotSupported

Bases: Exception

Raised when object conversion is not supported for the given type.

Source code in src/alpha/exceptions.py
class ObjectConversionNotSupported(Exception):
    """Raised when object conversion is not supported for the given type."""

ObjectConversionNotAllowed

Bases: Exception

Raised when object conversion is not allowed for the given type.

Source code in src/alpha/exceptions.py
class ObjectConversionNotAllowed(Exception):
    """Raised when object conversion is not allowed for the given type."""

ObjectConversionError

Bases: Exception

Raised when there is an error during object conversion.

Source code in src/alpha/exceptions.py
class ObjectConversionError(Exception):
    """Raised when there is an error during object conversion."""

UnionArgumentError

Bases: Exception

Raised when there is an error with union type arguments.

Source code in src/alpha/exceptions.py
class UnionArgumentError(Exception):
    """Raised when there is an error with union type arguments."""

MixedArgumentTypesError

Bases: Exception

Raised when mixed argument types are provided where not allowed.

Source code in src/alpha/exceptions.py
class MixedArgumentTypesError(Exception):
    """Raised when mixed argument types are provided where not allowed."""

MissingAttributeError

Bases: Exception

Raised when a required attribute is missing from an object.

Source code in src/alpha/exceptions.py
class MissingAttributeError(Exception):
    """Raised when a required attribute is missing from an object."""

ClassMismatchException

Bases: Exception

Raised when there is a mismatch between expected and actual class types.

Source code in src/alpha/exceptions.py
class ClassMismatchException(Exception):
    """Raised when there is a mismatch between expected and actual class types."""

LoggingHandlerException

Bases: Exception

Raised when there is an error with logging handlers.

Source code in src/alpha/exceptions.py
class LoggingHandlerException(Exception):
    """Raised when there is an error with logging handlers."""

ClassFactoryException

Bases: Exception

Raised when there is an error in the class factory process.

Source code in src/alpha/exceptions.py
class ClassFactoryException(Exception):
    """Raised when there is an error in the class factory process."""

IdentityError

Bases: Exception

Raised when there is a general identity-related error.

Source code in src/alpha/exceptions.py
class IdentityError(Exception):
    """Raised when there is a general identity-related error."""

UserNotFoundException

Bases: UnauthorizedException

Raised when a user is not found during authentication.

Source code in src/alpha/exceptions.py
class UserNotFoundException(UnauthorizedException):
    """Raised when a user is not found during authentication."""

InvalidCredentialsException

Bases: UnauthorizedException

Raised when provided credentials are invalid.

Source code in src/alpha/exceptions.py
class InvalidCredentialsException(UnauthorizedException):
    """Raised when provided credentials are invalid."""

NotSupportedException

Bases: ForbiddenException

Raised when an operation is not supported by the identity provider.

Source code in src/alpha/exceptions.py
class NotSupportedException(ForbiddenException):
    """Raised when an operation is not supported by the identity provider."""

InsufficientPermissionsException

Bases: ForbiddenException

Raised when the identity lacks sufficient permissions for an operation.

Source code in src/alpha/exceptions.py
class InsufficientPermissionsException(ForbiddenException):
    """Raised when the identity lacks sufficient permissions for an operation."""

TokenError

Bases: Exception

Raised when there is a general token-related error.

Source code in src/alpha/exceptions.py
class TokenError(Exception):
    """Raised when there is a general token-related error."""

TokenExpiredException

Bases: UnauthorizedException

Raised when a token has expired.

Source code in src/alpha/exceptions.py
class TokenExpiredException(UnauthorizedException):
    """Raised when a token has expired."""

InvalidSignatureException

Bases: UnauthorizedException

Raised when a token has an invalid signature.

Source code in src/alpha/exceptions.py
class InvalidSignatureException(UnauthorizedException):
    """Raised when a token has an invalid signature."""

InvalidTokenException

Bases: UnauthorizedException

Raised when a token is invalid.

Source code in src/alpha/exceptions.py
class InvalidTokenException(UnauthorizedException):
    """Raised when a token is invalid."""

TokenPayloadException

Bases: Exception

Raised when there is an error with the token payload.

Source code in src/alpha/exceptions.py
class TokenPayloadException(Exception):
    """Raised when there is an error with the token payload."""

TokenCreationException

Bases: Exception

Raised when there is an error during token creation.

Source code in src/alpha/exceptions.py
class TokenCreationException(Exception):
    """Raised when there is an error during token creation."""

UnknownUserException

Bases: BadRequestException

Raised when a referenced user cannot be found.

Source code in src/alpha/exceptions.py
class UnknownUserException(BadRequestException):
    """Raised when a referenced user cannot be found."""

EmptyValueException

Bases: BadRequestException

Raised when a required value is empty.

Source code in src/alpha/exceptions.py
class EmptyValueException(BadRequestException):
    """Raised when a required value is empty."""

UnknownTokenException

Bases: UnauthorizedException

Raised when a token is not recognized.

Source code in src/alpha/exceptions.py
class UnknownTokenException(UnauthorizedException):
    """Raised when a token is not recognized."""

WrongPasswordException

Bases: BadRequestException

Raised when an incorrect password is provided.

Source code in src/alpha/exceptions.py
class WrongPasswordException(BadRequestException):
    """Raised when an incorrect password is provided."""

MissingPasswordException

Bases: InternalServerErrorException

Raised when a required password is missing from the request or configuration.

Source code in src/alpha/exceptions.py
class MissingPasswordException(InternalServerErrorException):
    """Raised when a required password is missing from the request or configuration."""

InvalidArgumentsException

Bases: Exception

Raised when invalid arguments are provided to a CLI command.

Source code in src/alpha/exceptions.py
class InvalidArgumentsException(Exception):
    """Raised when invalid arguments are provided to a CLI command."""