@imbricate/core 1.19.0 → 1.19.1

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.
@@ -0,0 +1,15 @@
1
+ /**
2
+ * @author WMXPY
3
+ * @namespace Error
4
+ * @description Imbricate
5
+ */
6
+ export declare class ImbricateError extends Error {
7
+ private readonly _type;
8
+ private readonly _message;
9
+ private readonly _reason;
10
+ protected constructor(message: string, type: string, reason?: any);
11
+ get type(): string;
12
+ get message(): string;
13
+ get reason(): any | undefined;
14
+ toString(): string;
15
+ }
@@ -0,0 +1,30 @@
1
+ "use strict";
2
+ /**
3
+ * @author WMXPY
4
+ * @namespace Error
5
+ * @description Imbricate
6
+ */
7
+ Object.defineProperty(exports, "__esModule", { value: true });
8
+ exports.ImbricateError = void 0;
9
+ class ImbricateError extends Error {
10
+ constructor(message, type, reason) {
11
+ super(message);
12
+ this._type = type;
13
+ this._message = message;
14
+ this._reason = reason;
15
+ Object.setPrototypeOf(this, ImbricateError.prototype);
16
+ }
17
+ get type() {
18
+ return this._type;
19
+ }
20
+ get message() {
21
+ return this._message;
22
+ }
23
+ get reason() {
24
+ return this._reason;
25
+ }
26
+ toString() {
27
+ return `[${this._type}] ${this.message}`;
28
+ }
29
+ }
30
+ exports.ImbricateError = ImbricateError;
@@ -0,0 +1,10 @@
1
+ /**
2
+ * @author WMXPY
3
+ * @namespace Error
4
+ * @description Not Implemented
5
+ */
6
+ import { ImbricateError } from "./imbricate-error";
7
+ export declare class ImbricateNoteImplemented extends ImbricateError {
8
+ static create(originName: string, capabilityIdentifier: string): ImbricateNoteImplemented;
9
+ protected constructor(message: string, reason?: any);
10
+ }
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ /**
3
+ * @author WMXPY
4
+ * @namespace Error
5
+ * @description Not Implemented
6
+ */
7
+ Object.defineProperty(exports, "__esModule", { value: true });
8
+ exports.ImbricateNoteImplemented = void 0;
9
+ const imbricate_error_1 = require("./imbricate-error");
10
+ class ImbricateNoteImplemented extends imbricate_error_1.ImbricateError {
11
+ static create(originName, capabilityIdentifier) {
12
+ return new ImbricateNoteImplemented(`Origin: ${originName} Capability: ${capabilityIdentifier} Not Implemented`);
13
+ }
14
+ constructor(message, reason) {
15
+ super(message, "ImbricateNoteImplemented", reason);
16
+ Object.setPrototypeOf(this, ImbricateNoteImplemented.prototype);
17
+ }
18
+ }
19
+ exports.ImbricateNoteImplemented = ImbricateNoteImplemented;
package/index.d.ts CHANGED
@@ -11,6 +11,8 @@ export * from "./collection/interface";
11
11
  export * from "./collection/least-common-identifier";
12
12
  export * from "./definition/listable";
13
13
  export * from "./definition/promise";
14
+ export * from "./error/imbricate-error";
15
+ export * from "./error/not-implemented";
14
16
  export * from "./function/definition";
15
17
  export * from "./function/interface";
16
18
  export * from "./origin/definition";
package/index.js CHANGED
@@ -27,6 +27,8 @@ __exportStar(require("./collection/interface"), exports);
27
27
  __exportStar(require("./collection/least-common-identifier"), exports);
28
28
  __exportStar(require("./definition/listable"), exports);
29
29
  __exportStar(require("./definition/promise"), exports);
30
+ __exportStar(require("./error/imbricate-error"), exports);
31
+ __exportStar(require("./error/not-implemented"), exports);
30
32
  __exportStar(require("./function/definition"), exports);
31
33
  __exportStar(require("./function/interface"), exports);
32
34
  __exportStar(require("./origin/definition"), exports);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@imbricate/core",
3
3
  "main": "index.js",
4
- "version": "1.19.0",
4
+ "version": "1.19.1",
5
5
  "description": "Imbricate Core, Notebook for Engineers",
6
6
  "repository": {
7
7
  "type": "git",