Discover the Peaka NodeJS driver
npm install @peaka/client
or
yarn add @peaka/client
Query errors are returned in two different ways.
connection.query()
method throws an error object, and the error.response.data
object contains the following properties:Error Property | Description |
---|---|
errorCode | Code of error |
message | Description of the error |
traceId | The identifier that you can give Peaka Team to learn more about the error |
connection.query()
method returns successfully, but the response may include an error
object with the following structure:In order to handle all possible errors, please make sure to check both objects, as demonstrated in the example below:
Discover the Peaka NodeJS driver
npm install @peaka/client
or
yarn add @peaka/client
Query errors are returned in two different ways.
connection.query()
method throws an error object, and the error.response.data
object contains the following properties:Error Property | Description |
---|---|
errorCode | Code of error |
message | Description of the error |
traceId | The identifier that you can give Peaka Team to learn more about the error |
connection.query()
method returns successfully, but the response may include an error
object with the following structure:In order to handle all possible errors, please make sure to check both objects, as demonstrated in the example below: