Predefined errors that ui-predicate-core will yield from rejected promises
Type Definitions
InvalidPredicateType
Error when a Predicate is created without
Type:
- Error
CompoundPredicate
Error when a json data passed to PredicateCore Constructor is neither a serialized ComparisonPredicate or a CompoundPredicate
Type:
- Error
CompoundPredicateMustHaveAtLeastOneSubPredicate
Error when someone tried to remove the last remaining predicate from a CompoundPredicate
Type:
- Error
RootPredicateMustBeACompoundPredicate
Error when setData `data` parameter is called with something else than a dataclasses.CompoundPredicate
Type:
- Error
RootPredicateMustBeACompoundPredicate
Error when a function was requiring a dataclasses.CompoundPredicate as a parameter
Type:
- Error
PredicateMustBeAComparisonPredicate
Error when a function was requiring a dataclasses.ComparisonPredicate as a parameter
Type:
- Error
AddCurrentlyOnlySupportAfterInsertion
Error add is called with something else than "after" parameter
Type:
- Error
TargetMustReferToADefinedType
Thrown when a specified target refers to a undefined type.
It means the user has missed a type definition in `types`.
Type:
- Error
LogicalType_idMustReferToADefinedLogicalType
Thrown when a user asked for a logic change
but the logicalType_id was invalid because it referred to no existing targets
Type:
- Error
Target_idMustReferToADefinedTarget
Thrown when a user asked for a target
but the target_id was invalid because it referred to no existing targets
Type:
- Error
Operator_idMustReferToADefinedOperator
Thrown when a user asked for a operator
but the operator_id was invalid because it referred to no existing operators
Type:
- Error
Operator_idMustReferToADefinedOperator
Thrown when a user asked for a operator change on a predicate
but the operator_id was invalid because it referred
to no existing operators for the currently selected predicate's target
Type:
- Error
ForbiddenCannotRemoveRootCompoundPredicate
Thrown when remove is called on root dataclasses.CompoundPredicate
Type:
- Error
ForbiddenCannotRemoveLastComparisonPredicate
Thrown when remove is called on root CompoundPredicate
Type:
- Error
CannotRemoveSomethingElseThanACompoundPredicateOrAComparisonPredicate
Thrown when remove is called with an invalid type of predicate
Type:
- Error
CannotAddSomethingElseThanACompoundPredicateOrAComparisonPredicate
Thrown when add is called with an invalid type of predicate
Type:
- Error
UIFrameworkMustImplementgetDefaultArgumentComponent
Thrown when the UI Framework adapter forgot to pass `getDefaultArgumentComponent` in the option object to UIPredicateCore constructor
Type:
- Error