Skip to content

Commit

Permalink
Add doc for error constructors
Browse files Browse the repository at this point in the history
  • Loading branch information
tommy351 committed Jan 9, 2016
1 parent 511c8dc commit 145f041
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lib/error.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@

var util = require('./util');

/**
* WarehouseError constructor
*
* @class
* @param {String} msg
* @param {String} code
* @extends Error
*/
function WarehouseError(msg, code) {
Error.call(this);

Expand Down
7 changes: 7 additions & 0 deletions lib/error/population.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,13 @@
var util = require('../util');
var WarehouseError = require('../error');

/**
* PopulationError constructor
*
* @class
* @param {String} msg
* @extends WarehouseError
*/
function PopulationError(msg) {
WarehouseError.call(this);

Expand Down
7 changes: 7 additions & 0 deletions lib/error/validation.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,13 @@
var util = require('../util');
var WarehouseError = require('../error');

/**
* ValidationError constructor
*
* @class
* @param {String} msg
* @extends WarehouseError
*/
function ValidationError(msg) {
WarehouseError.call(this);

Expand Down

0 comments on commit 145f041

Please sign in to comment.