safe-apps-sdk
Version:
SDK developed to integrate third-party apps with Safe app.
16 lines • 742 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.PermissionsError = exports.PERMISSIONS_REQUEST_REJECTED = void 0;
exports.PERMISSIONS_REQUEST_REJECTED = 4001;
class PermissionsError extends Error {
constructor(message, code, data) {
super(message);
this.code = code;
this.data = data;
// Should adjust prototype manually because how TS handles the type extension compilation
// https://github.com/Microsoft/TypeScript/wiki/Breaking-Changes#extending-built-ins-like-error-array-and-map-may-no-longer-work
Object.setPrototypeOf(this, PermissionsError.prototype);
}
}
exports.PermissionsError = PermissionsError;
//# sourceMappingURL=permissions.js.map