gauthify
Version:
GAuthify Node Client Library - two factor authentication via SMS/Voice/Email/Google Authenticator
72 lines (65 loc) • 2.06 kB
JavaScript
;
var util = require('util')
function Base(message, error_code) {
Error.captureStackTrace(this, this.constructor);
this.message = message;
this.error_code = error_code;
this.name = this.constructor.name;
}
module.exports = function ApiKeyError(message, error_code) {
ApiKeyError.super_.call(this, message, error_code);
};
util.inherits(ApiKeyError, Base);
util.inherits(module.exports, Error);
// module.exports = function ApiKeyError(message, error_code) {
// Error.captureStackTrace(this, this.constructor);
// this.name = this.constructor.name;
// this.message = message;
// this.error_code = error_code;
// };
// module.exports = function ApiKeyError(message, error_code) {
// Error.captureStackTrace(this, this.constructor);
// this.name = this.constructor.name;
// this.message = message;
// this.error_code = error_code;
// };
//
//
// module.exports = function ApiKeyError(message, error_code) {
// Error.captureStackTrace(this, this.constructor);
// this.name = this.constructor.name;
// this.message = message;
// this.error_code = error_code;
// };
//
//
// module.exports = function ApiKeyError(message, error_code) {
// Error.captureStackTrace(this, this.constructor);
// this.name = this.constructor.name;
// this.message = message;
// this.error_code = error_code;
// };
//
//
// module.exports = function ApiKeyError(message, error_code) {
// Error.captureStackTrace(this, this.constructor);
// this.name = this.constructor.name;
// this.message = message;
// this.error_code = error_code;
// };
//
//
// // module.exports = function ApiKeyError(message, error_code) {
// // Error.captureStackTrace(this, this.constructor);
// // this.name = this.constructor.name;
// // this.message = message;
// // this.error_code = error_code;
// // };
//
//
// module.exports = function ApiKeyError(message, error_code) {
// Error.captureStackTrace(this, this.constructor);
// this.name = this.constructor.name;
// this.message = message;
// this.error_code = error_code;
// };