errors.ParameterizedQueryError()

new ParameterizedQueryError()

ParameterizedQueryError class, available from the errors namespace.

This type represents all errors that can be reported by class ParameterizedQuery, whether it is used explicitly or implicitly (via a simple {text, values} object).

Properties:
Name Type Description
name string

Standard Error property - error type name = ParameterizedQueryError.

message string

Standard Error property - the error message.

stack string

Standard Error property - the stack trace.

error errors.QueryFileError

Internal errors.QueryFileError object.

It is set only when the source ParameterizedQuery used a QueryFile which threw the error.

result object

Resulting Parameterized Query object.

Source:
See:

Extends

Methods

toString(levelopt) → {string}

Creates a well-formatted multi-line string that represents the error.

It is called automatically when writing the object into the console.

Parameters:
Name Type Attributes Default Description
level number <optional>
0

Nested output level, to provide visual offset.

Source:
Returns:
Type
string