errors

Error types namespace, available as pgp.errors, before and after initializing the library.

Properties:
Name Type Description
PreparedStatementError function

PreparedStatementError class constructor.

Represents all errors that can be reported by class PreparedStatement.

ParameterizedQueryError function

ParameterizedQueryError class constructor.

Represents all errors that can be reported by class ParameterizedQuery.

QueryFileError function

QueryFileError class constructor.

Represents all errors that can be reported by class QueryFile.

QueryResultError function

QueryResultError class constructor.

Represents all result-specific errors from query methods.

queryResultErrorCode errors.queryResultErrorCode

Error codes enum used by class QueryResultError.

Source:

Classes

ParameterizedQueryError
PreparedStatementError
QueryFileError
QueryResultError

Members

(static, constant) queryResultErrorCode :number

queryResultErrorCode enumerator, available from the errors namespace.

Represents an integer code for each type of error supported by type errors.QueryResultError.

Type:
  • number
Properties:
Name Type Description
noData number

No data returned from the query.

notEmpty number

No return data was expected.

multiple number

Multiple rows were not expected.

Source:
See: