Exceptions
Custom exceptions for datastore operations.
This module defines custom exceptions for capability operations and datastore configuration errors.
References
NONE
NotRegisteredException(capability, class_obj)
Bases: Exception
Raised when attempting to access a capability that is not registered.
This exception is raised when code attempts to access a capability that is not registered for a datastore but is supported by the datastore.
Initialize the exception.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
capability |
str
|
The name of the unregistered capability. |
required |
class_obj |
Type
|
The class object for context. |
required |
NotSupportedException(capability, class_obj)
Bases: Exception
Raised when attempting to access an unsupported capability.
This exception is raised when code attempts to access a capability that isn't configured for a datastore.
Initialize the exception.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
capability |
str
|
The name of the unsupported capability. |
required |
class_obj |
Type
|
The class object for context. |
required |