This class of error will be thrown when an expression errors. Various reasons this could happen are:

  • invalid types for the given operator
  • unbound variables
  • invalid lexical forms
  • ...

The distinction is made so that one can catch this specific type and handle it accordingly to the SPARQL spec (relevant for e.g. FILTER, EXTEND), while others (programming errors) can be re-thrown.

See

isExpressionError

Hierarchy

  • Error
    • ExpressionError

Constructors

  • Parameters

    • Optional message: string

    Returns ExpressionError

Properties

message: string
name: string
stack?: string
prepareStackTrace?: ((err, stackTraces) => any)

Optional override for formatting stack traces

Type declaration

    • (err, stackTraces): any
    • Parameters

      • err: Error
      • stackTraces: CallSite[]

      Returns any

stackTraceLimit: number

Methods

  • Create .stack property on a target object

    Parameters

    • targetObject: object
    • Optional constructorOpt: Function

    Returns void