This repository has been archived by the owner on Oct 15, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Zenedith
committed
Nov 11, 2015
1 parent
6e33829
commit 797c718
Showing
8 changed files
with
125 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
var util = require('util'); | ||
|
||
var AlreadyExistsError = function AlreadyExistsError(message, userMessage) { | ||
Error.call(this); | ||
this.name = 'AlreadyExistsError'; | ||
this.message = message; | ||
this.userMessage = userMessage; | ||
}; | ||
|
||
util.inherits(AlreadyExistsError, Error); | ||
|
||
module.exports.AlreadyExistsError = AlreadyExistsError; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
var util = require('util'); | ||
|
||
var InvalidAmountError = function InvalidAmountError(message, userMessage, field) { | ||
Error.call(this); | ||
this.name = 'InvalidAmountError'; | ||
this.message = message; | ||
this.userMessage = userMessage; | ||
this.field = field; | ||
}; | ||
|
||
util.inherits(InvalidAmountError, Error); | ||
|
||
module.exports.InvalidAmountError = InvalidAmountError; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
var util = require('util'); | ||
|
||
var InvalidDateError = function InvalidDateError(message, userMessage, field) { | ||
Error.call(this); | ||
this.name = 'InvalidDateError'; | ||
this.message = message; | ||
this.userMessage = userMessage; | ||
this.field = field; | ||
}; | ||
|
||
util.inherits(InvalidDateError, Error); | ||
|
||
module.exports.InvalidDateError = InvalidDateError; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
var util = require('util'); | ||
|
||
var InvalidPointOfSaleError = function InvalidPointOfSaleError(message, userMessage, field) { | ||
Error.call(this); | ||
this.name = 'InvalidPointOfSaleError'; | ||
this.message = message; | ||
this.userMessage = userMessage; | ||
this.field = field; | ||
}; | ||
|
||
util.inherits(InvalidPointOfSaleError, Error); | ||
|
||
module.exports.InvalidPointOfSaleError = InvalidPointOfSaleError; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
var util = require('util'); | ||
|
||
var InvalidTaxRegistrationNumberError = function InvalidTaxRegistrationNumberError(message, userMessage, field) { | ||
Error.call(this); | ||
this.name = 'InvalidTaxRegistrationNumberError'; | ||
this.message = message; | ||
this.userMessage = userMessage; | ||
this.field = field; | ||
}; | ||
|
||
util.inherits(InvalidTaxRegistrationNumberError, Error); | ||
|
||
module.exports.InvalidTaxRegistrationNumberError = InvalidTaxRegistrationNumberError; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
var util = require('util'); | ||
|
||
var UnknownValidateError = function UnknownValidateError(message, userMessage) { | ||
Error.call(this); | ||
this.name = 'UnknownValidateError'; | ||
this.message = message; | ||
this.userMessage = userMessage; | ||
}; | ||
|
||
util.inherits(UnknownValidateError, Error); | ||
|
||
module.exports.UnknownValidateError = UnknownValidateError; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters