Skip to content

omnipy.shared.exceptions

CLASS DESCRIPTION
AssumedToBeImplementedException

Used as default implementation for methods in Protocols that are to be

FailedDataError
JobStateException
OmnipyNoneIsNotAllowedError
PendingDataError
ShouldNotOccurException

AssumedToBeImplementedException

Bases: Exception

Used as default implementation for methods in Protocols that are to be inherited from in TYPE_CHECKING blocks. This tells type checkers that a class should be assumed to implement the protocol, even when type checkers cannot verify this. If a Protocol method is just an ellipsis or raises NotImplementedError, type checkers will check that the class actually implements the method.

Source code in src/omnipy/shared/exceptions.py
class AssumedToBeImplementedException(Exception):
    """
    Used as default implementation for methods in Protocols that are to be
    inherited from in TYPE_CHECKING blocks. This tells type checkers
    that a class should be assumed to implement the protocol, even when
    type checkers cannot verify this. If a Protocol method is just an
    ellipsis or raises NotImplementedError, type checkers will check that
    the class actually implements the method.
    """
    ...

FailedDataError

Bases: ValueError

Source code in src/omnipy/shared/exceptions.py
class FailedDataError(ValueError):
    ...

JobStateException

Bases: Exception

Source code in src/omnipy/shared/exceptions.py
class JobStateException(Exception):
    ...

OmnipyNoneIsNotAllowedError

Bases: pyd.NoneIsNotAllowedError

ATTRIBUTE DESCRIPTION
msg_template

Source code in src/omnipy/shared/exceptions.py
class OmnipyNoneIsNotAllowedError(pyd.NoneIsNotAllowedError):
    msg_template = '[Omnipy] none is not an allowed value'

msg_template class-attribute instance-attribute

msg_template = '[Omnipy] none is not an allowed value'

PendingDataError

Bases: ValueError

Source code in src/omnipy/shared/exceptions.py
class PendingDataError(ValueError):
    ...

ShouldNotOccurException

Bases: Exception

Source code in src/omnipy/shared/exceptions.py
class ShouldNotOccurException(Exception):
    ...