base_exceptions#

exception starlite.exceptions.base_exceptions.StarLiteException#

Bases: Exception

Base exception class from which all Starlite exceptions inherit.

__init__(*args: Any, detail: str = '') None#

Initialize StarLiteException.

Parameters:
  • *args (Any) – args are cast to str before passing to Exception.__init__()

  • detail (str, optional) – detail of the exception.

exception starlite.exceptions.base_exceptions.MissingDependencyException#

Bases: StarLiteException

Missing optional dependency.

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

exception starlite.exceptions.base_exceptions.SerializationException#

Bases: StarLiteException

Encoding or decoding of an object failed.