import {C8oException}           from "./c8oException";

export class C8oCouchBaseLiteException extends C8oException {
    constructor(message: string);
    constructor(message: string, cause: Error);
    constructor(message: string, cause: Error = null) {
        super(message, cause);
        // Since typescript 2.1.1 we have to set the prototype explicitly.
        Object.setPrototypeOf(this, C8oCouchBaseLiteException.prototype);
    }
}