"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const setprototypeof_1 = require("./setprototypeof");
class NotFoundException extends Error {
    constructor(m) {
        super(m);
        this.notFoundException = true;
        // there must be no code between super() and setPrototypeOf
        // https://github.com/Microsoft/TypeScript-wiki/blob/master/Breaking-Changes.md#extending-built-ins-like-error-array-and-map-may-no-longer-work
        setprototypeof_1.setPrototypeOf(this, NotFoundException.prototype);
        // this is a polyfill https://github.com/wesleytodd/setprototypeof. When target will be "es6" it can be replaced with "Object.setPrototypeOf"
    }
}
exports.NotFoundException = NotFoundException;
(function (NotFoundException) {
    /**
     * This is an TS 1.6+ TypeGuard as described here: https://www.typescriptlang.org/docs/handbook/advanced-types.html
     */
    function isNotFoundException(o) {
        return typeof o === "object" && !!o.notFoundException;
    }
    NotFoundException.isNotFoundException = isNotFoundException;
})(NotFoundException = exports.NotFoundException || (exports.NotFoundException = {}));
//# sourceMappingURL=NotFoundException.js.map