"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
// tslint:disable-next-line:function-name
function EnsureError(message, data) {
    this.name = 'EnsureError';
    this.message = message || 'Ensure failed';
    this.data = data;
    this.stack = new Error().stack;
}
exports.EnsureError = EnsureError;
EnsureError.prototype = Object.create(Error.prototype);
EnsureError.prototype.constructor = EnsureError;
