'use strict';

/**
 * Passed to parent components in certain callbacks with the lower-level JS-SDK emits an error
 */
class SDKError extends Error {
    constructor(message, statusCode, response) {
        super(message || 'SDK Error');
        this.response = response;
        this.statusCode = statusCode;
        Object.setPrototypeOf(this, new.target.prototype);
    }
}

exports.SDKError = SDKError;
//# sourceMappingURL=errors-D1XRvnet.js.map

//# sourceMappingURL=errors-D1XRvnet.js.map