不要怂,就是干,撸起袖子干!

errors.js 515 Bytes
'use strict';

/**
 * @fileOverview The Error Objects produced by Sequelize.
 */

var util = require('util');
var error = module.exports = {};

/**
 * The Base Error all Sequelize Errors inherit from.
 *
 * @constructor
 */
error.BaseError = function() {
  Error.apply(this, arguments);
};
util.inherits(error.BaseError, Error);


/**
 * Validation Error
 *
 * @constructor
 */
error.ValidationError = function() {
  error.BaseError.apply(this, arguments);
};
util.inherits(error.ValidationError, error.BaseError);