111
yhj
5 天以前 986f2bdc1ef38691cee1b70da9277b759d4e3708
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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};