UNPKG

kafka-node

Version:

Client for Apache Kafka v0.9.x, v0.10.x and v0.11.x

21 lines (17 loc) 578 B
var util = require('util'); /** * Thrown when SASL authentication fails for any reason. * * @param {Number} errorCode the error code that caused the error. * @param {String} message A message describing the authentication problem. * * @constructor */ var SaslAuthenticationError = function (errorCode, message) { Error.captureStackTrace(this, this); this.errorCode = errorCode; this.message = message; }; util.inherits(SaslAuthenticationError, Error); SaslAuthenticationError.prototype.name = 'SaslAuthenticationError'; module.exports = SaslAuthenticationError;