Barcode Generation
This commit is contained in:
29
node_modules/jsbarcode/src/exceptions/exceptions.js
generated
vendored
Normal file
29
node_modules/jsbarcode/src/exceptions/exceptions.js
generated
vendored
Normal file
@@ -0,0 +1,29 @@
|
||||
class InvalidInputException extends Error{
|
||||
constructor(symbology, input) {
|
||||
super();
|
||||
this.name = "InvalidInputException";
|
||||
|
||||
this.symbology = symbology;
|
||||
this.input = input;
|
||||
|
||||
this.message = '"' + this.input + '" is not a valid input for ' + this.symbology;
|
||||
}
|
||||
}
|
||||
|
||||
class InvalidElementException extends Error{
|
||||
constructor() {
|
||||
super();
|
||||
this.name = "InvalidElementException";
|
||||
this.message = "Not supported type to render on";
|
||||
}
|
||||
}
|
||||
|
||||
class NoElementException extends Error{
|
||||
constructor() {
|
||||
super();
|
||||
this.name = "NoElementException";
|
||||
this.message = "No element to render on.";
|
||||
}
|
||||
}
|
||||
|
||||
export {InvalidInputException, InvalidElementException, NoElementException};
|
||||
Reference in New Issue
Block a user