geonature.utils.errors

Attributes

log

Erreurs propres à GN

Exceptions

GeoNatureError

Common base class for all non-exit exceptions.

ConfigError

Configuration error class

GeonatureApiError

Common base class for all non-exit exceptions.

AuthentificationError

Common base class for all non-exit exceptions.

CasAuthentificationError

Common base class for all non-exit exceptions.

Module Contents

geonature.utils.errors.log[source]

Erreurs propres à GN

exception geonature.utils.errors.GeoNatureError[source]

Bases: Exception

Common base class for all non-exit exceptions.

exception geonature.utils.errors.ConfigError(file, value)[source]

Bases: GeoNatureError

Configuration error class Quand un fichier de configuration n’est pas conforme aux attentes

value[source]
file[source]
__str__()[source]

Return str(self).

exception geonature.utils.errors.GeonatureApiError(message, status_code=500)[source]

Bases: Exception

Common base class for all non-exit exceptions.

message[source]
status_code[source]
to_dict()[source]
__str__()[source]

Return str(self).

exception geonature.utils.errors.AuthentificationError(message, status_code=500)[source]

Bases: GeonatureApiError

Common base class for all non-exit exceptions.

exception geonature.utils.errors.CasAuthentificationError(message, status_code=500)[source]

Bases: GeonatureApiError

Common base class for all non-exit exceptions.