lucid-extension-sdk 0.0.66 → 0.0.67

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lucid-extension-sdk",
3
- "version": "0.0.66",
3
+ "version": "0.0.67",
4
4
  "description": "Utility classes for writing Lucid Software editor extensions",
5
5
  "main": "sdk/index.js",
6
6
  "types": "sdk/index.d.ts",
@@ -0,0 +1,7 @@
1
+ /**
2
+ * An error carrying a message that is good to be shown directly in the UI.
3
+ * These can be thrown from extensions and caught in core code.
4
+ */
5
+ export declare class HumanReadableError extends Error {
6
+ name: string;
7
+ }
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.HumanReadableError = void 0;
4
+ /**
5
+ * An error carrying a message that is good to be shown directly in the UI.
6
+ * These can be thrown from extensions and caught in core code.
7
+ */
8
+ class HumanReadableError extends Error {
9
+ constructor() {
10
+ super(...arguments);
11
+ this.name = 'HumanReadableError';
12
+ }
13
+ }
14
+ exports.HumanReadableError = HumanReadableError;