exceptions module

exception infocards.exceptions.ArchiveError

Bases: builtins.Exception

Base class for the archive exceptions.

exception infocards.exceptions.InsertError(message)

Bases: infocards.exceptions.ArchiveError

Raised when an error occurs whilst trying to insert a new card in the archive.

Parameters:message (str) – error explanation
exception infocards.exceptions.NoCardFound(message)

Bases: infocards.exceptions.ArchiveError

Raised when a specific card does not exist.

Parameters:message (str) – error explanation
exception infocards.exceptions.ParamError(message)

Bases: infocards.exceptions.ArchiveError

Raised when function parameters are not valid.

Parameters:message (str) – error explanation
exception infocards.exceptions.SearchError(message)

Bases: infocards.exceptions.ArchiveError

Raised when an error occurs when searching.

Parameters:message (str) – error explanation