Skip to content

Event.error

Grant Carthew edited this page Feb 20, 2017 · 5 revisions

Event Details

Subject: Queue or Job

Signature: (err)

Returns: err Object

  • The Node.js Error object with details about the exception.
  • The id of the Queue object that raised the error is attached to the error object err.queueId.

Example:

const Queue = require('rethinkdb-job-queue')
const q = new Queue()

q.on('error', (err) => {
  console.log('Queue Id: ' + err.queueId)
  console.error(err)
})

Description

The error event is raised whenever an error is detected within the rethinkdb-job-queue module. This is a local Queue object event.

Main

How It Works

Contributing

API

Queue Methods

Queue Properties

Queue Events

Job Methods

Job Properties

Documentation

Clone this wiki locally