All files / src/Ice RetryException.js

73.68% Statements 14/19
66.66% Branches 2/3
50% Functions 1/2
73.68% Lines 14/19

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 13 14 15 16 17 18 19 2041x 41x 41x 41x 41x 41x 51x 51x 51x 51x       51x 41x 41x     41x  
// Copyright (c) ZeroC, Inc.
 
import { LocalException } from "./LocalException.js";
 
export class RetryException extends Error {
    constructor(ex) {
        super();
        if (ex instanceof LocalException) {
            this._ex = ex;
        } else {
            console.assert(ex instanceof RetryException);
            this._ex = ex._ex;
        }
    }
 
    get inner() {
        return this._ex;
    }
}