« Back (utils/warnings.py) Return » (to Documentation)
   

utils/exceptions.py

Custom exceptions for kms are stored in the utils.exceptions module, relative path ./utils/exceptions.py.

Structure of the Module

Tip

Click on a class or method below to go straight to its documentation!

Classes

Warning

From kms-semver1.3.0 onward, the usage of kms.Storage.<warning or exception> has been deprecated. Please use the format kms.<warning or exception> instead.

kms.KeyNotFoundError

Inherits from: KeyError

Custom exception raised when a key is not found.

Example: if attempting to search for a nonexistent key with Storage.Load.by_key, this would be raised.

kms.NoInstantiationError

Inherits from: TypeError

Custom exception raised when attempting to instantiate a non-instantiable class.

Example: if attempting to instantiate a helper class like Load, this would be raised.