This documentation covers Djblets 4.x.
You can select a version above or
view the latest documentation.
djblets.conditions.errors
Error classes for conditions.
-
exception ConditionChoiceConflictError[source]
Bases: AlreadyRegisteredError
A condition choice conflicts with another registered choice.
-
exception ConditionChoiceNotFoundError(message, condition_index=None, choice_id=None)[source]
Bases: ItemLookupError
A condition choice was not found.
-
__init__(message, condition_index=None, choice_id=None)[source]
Initialize the error.
- Parameters:
message (unicode
) – The error message.
condition_index (int
, optional) – The index of the condition this error applies to within
the condition set.
choice_id (unicode
, optional) – The ID of the choice that could not be found.
-
__annotations__ = {}
-
exception ConditionOperatorConflictError[source]
Bases: AlreadyRegisteredError
A condition operator conflicts with another registered operator.
-
__annotations__ = {}
-
exception ConditionOperatorNotFoundError(message, condition_index=None, operator_id=None)[source]
Bases: ItemLookupError
A condition operator was not found.
-
__init__(message, condition_index=None, operator_id=None)[source]
Initialize the error.
- Parameters:
message (unicode
) – The error message.
condition_index (int
, optional) – The index of the condition this error applies to within
the condition set.
choice_id (unicode
, optional) – The ID of the operator that could not be found.
-
__annotations__ = {}
-
exception InvalidConditionModeError[source]
Bases: ValueError
The condition mode provided was invalid.
-
exception InvalidConditionValueError(message, code=None, condition_index=None)[source]
Bases: ValueError
The condition value provided was invalid.
-
__init__(message, code=None, condition_index=None)[source]
Initialize the error.
- Parameters:
message (unicode
) – The error message.
code (unicode
, optional) – The error code. This will generally correspond to a form
validation error code.
condition_index (int
, optional) – The index of the condition this error applies to within
the condition set.