All files / src/Ice Exception.js

100% Statements 12/12
100% Branches 3/3
100% Functions 2/2
100% Lines 12/12

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 1341x 41x 41x 41x 3011x 3011x 3011x 41x 41x 57x 57x 41x  
// Copyright (c) ZeroC, Inc.
 
export class Exception extends Error {
    constructor(...params) {
        super(...params);
        this.name = this.constructor._ice_id.substr(2).replace(/::/g, ".");
    }
 
    ice_id() {
        return this.constructor._ice_id;
    }
}