Skip to content
qubeejs/angular
3.8/API/InvalidFilterOperatorValueError

InvalidFilterOperatorValueError

ArchivedThese are the docs for ng-qubee 3.8. Read the 4.0 docs for @qubeejs/angular.

Defined in: src/lib/errors/invalid-filter-operator-value.error.ts:18

Thrown when a filter operator receives a value array of the wrong shape

Some operators have arity or type constraints that the library enforces at call time so misuse fails loudly instead of silently emitting invalid server requests:

  • BTW requires exactly two values (min, max).
  • NULL requires exactly one boolean value (true for IS NULL, false for IS NOT NULL).

Operators with looser shape rules leave validation to the server; this error is reserved for cases where the library itself can detect the problem unambiguously from the call site.

  • Error

new InvalidFilterOperatorValueError(operator, reason): InvalidFilterOperatorValueError

Defined in: src/lib/errors/invalid-filter-operator-value.error.ts:24

FilterOperatorEnum

The operator that rejected the values

string

Short human-readable explanation of the constraint

InvalidFilterOperatorValueError

Error.constructor

message: string

Defined in: typescript/lib/lib.es5.d.ts:1075

Error.message


name: string

Defined in: typescript/lib/lib.es5.d.ts:1074

Error.name


optional stack?: string

Defined in: typescript/lib/lib.es5.d.ts:1076

Error.stack