errors.PreparedStatementError()

new PreparedStatementError()

PreparedStatementError class, available from the errors namespace.

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

Properties:
Name Type Description
name string

Standard Error property - error type name = PreparedStatementError.

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 PreparedStatement used a QueryFile which threw the error.

result object

Resulting Prepared Statement 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