jaredhanson/antenna-amqp

View on GitHub
lib/errors/noqueueerror.js

Summary

Maintainability
A
0 mins
Test Coverage
/**
 * `NoQueueError` error.
 *
 * @api public
 */
function NoQueueError(message) {
  Error.call(this);
  Error.captureStackTrace(this, arguments.callee);
  this.name = 'NoQueueError';
  this.message = message;
  this.code = 'ENOQUEUE';
}

/**
 * Inherit from `Error`.
 */
NoQueueError.prototype.__proto__ = Error.prototype;


/**
 * Expose `NoQueueError`.
 */
module.exports = NoQueueError;