public GetTraceback()

in src/exceptions.ts [20:35]


    public GetTraceback(): Array<string> {
        let errorMessages: Array<string> = [this.message];
        let innerException: BaseException | Error = this._innerException;
        while (innerException !== undefined && innerException instanceof BaseException) {
            errorMessages.push(innerException.message);
            innerException = innerException._innerException;
        }

        if (innerException !== undefined && innerException instanceof Error) {
            errorMessages.push(innerException.message);
            errorMessages.push(innerException.stack);
        } else if (innerException !== undefined) {
            errorMessages.push(String(innerException));
        }
        return errorMessages;
    }