exceptions

exception mersal.exceptions.ConcurrencyExceptionError[source]

Bases: MersalExceptionError

exception mersal.exceptions.DeferralNotSupportedError[source]

Bases: MersalExceptionError

Raised when deferring a message on a transport that can’t delay delivery.

exception mersal.exceptions.MersalExceptionError[source]

Bases: Exception

Base exception class from which all Mersal exceptions inherit.

__init__(*args: Any, detail: str = '') → None[source]

Initialize mersalException.

Parameters:
  • *args – args are converted to str before passing to Exception

  • detail – detail of the exception.

exception mersal.exceptions.MissingDependencyExceptionError[source]

Bases: MersalExceptionError, ImportError

Missing optional dependency.

This exception is raised only when a module depends on a dependency that has not been installed.

__init__(package: str, install_package: str | None = None) → None[source]

Initialize mersalException.

Parameters:
  • *args – args are converted to str before passing to Exception

  • detail – detail of the exception.