errors

Source:
Since:
  • 1.0.0
Predefined errors that ui-predicate-core will yield from rejected promises

Type Definitions

InvalidPredicateType

Source:
Since:
  • 1.0.0
Error when a Predicate is created without
Type:
  • Error

CompoundPredicate

Source:
Since:
  • 1.0.0
Error when a json data passed to PredicateCore Constructor is neither a serialized ComparisonPredicate or a CompoundPredicate
Type:
  • Error

CompoundPredicateMustHaveAtLeastOneSubPredicate

Source:
Since:
  • 1.0.0
Error when someone tried to remove the last remaining predicate from a CompoundPredicate
Type:
  • Error

AddCurrentlyOnlySupportAfterInsertion

Source:
Since:
  • 1.0.0
Error add is called with something else than "after" parameter
Type:
  • Error

TargetMustReferToADefinedType

Source:
Since:
  • 1.0.0
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

Source:
Since:
  • 1.0.0
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

Source:
Since:
  • 1.0.0
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

Source:
Since:
  • 1.0.0
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

Source:
Since:
  • 1.0.0
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

ForbiddenCannotRemoveLastComparisonPredicate

Source:
Since:
  • 1.0.0
Thrown when remove is called on root CompoundPredicate
Type:
  • Error

CannotRemoveSomethingElseThanACompoundPredicateOrAComparisonPredicate

Source:
Since:
  • 1.0.0
Thrown when remove is called with an invalid type of predicate
Type:
  • Error

CannotAddSomethingElseThanACompoundPredicateOrAComparisonPredicate

Source:
Since:
  • 1.0.0
Thrown when add is called with an invalid type of predicate
Type:
  • Error

UIFrameworkMustImplementgetDefaultArgumentComponent

Source:
Since:
  • 1.0.0
Thrown when the UI Framework adapter forgot to pass `getDefaultArgumentComponent` in the option object to UIPredicateCore constructor
Type:
  • Error