"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.UnconventionalError = void 0;
/**
 * A wrapper error type that represents a non-standard error thrown from a
 * response, such as a symbol or plain object. Read the `cause` property to
 * determine the source of the error.
 */
class UnconventionalError extends Error {
    constructor(errorType) {
        super("An error of unexpected shape occurred.", { cause: errorType });
        this.name = "UnconventionalError";
        Object.setPrototypeOf(this, UnconventionalError.prototype);
    }
}
exports.UnconventionalError = UnconventionalError;
//# sourceMappingURL=UnconventionalError.cjs.map
