@nu-art/ts-common 0.204.66 → 0.204.68
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.
|
@@ -125,6 +125,9 @@ export declare class DontCallThisException extends CustomException {
|
|
|
125
125
|
export declare class WhoCallThisException extends CustomException {
|
|
126
126
|
constructor(message: string, cause?: Error);
|
|
127
127
|
}
|
|
128
|
+
export declare class ConfigMissingException extends CustomException {
|
|
129
|
+
constructor(message: string, cause?: Error);
|
|
130
|
+
}
|
|
128
131
|
/**
|
|
129
132
|
* # <ins>AssertionException</ins>
|
|
130
133
|
* This class inherits {@link CustomException} and functions like it, after setting the exceptionType property as "AssertionException",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
* Created by TacB0sS on 3/16/17.
|
|
21
21
|
*/
|
|
22
22
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
23
|
-
exports.ApiException = exports.AssertionException = exports.WhoCallThisException = exports.DontCallThisException = exports.HasDependenciesException = exports.ThisShouldNotHappenException = exports.NotImplementedYetException = exports.MUSTNeverHappenException = exports.ImplementationMissingException = exports.BadImplementationException = exports.Exception = exports.CustomException = exports.isErrorOfType = void 0;
|
|
23
|
+
exports.ApiException = exports.AssertionException = exports.ConfigMissingException = exports.WhoCallThisException = exports.DontCallThisException = exports.HasDependenciesException = exports.ThisShouldNotHappenException = exports.NotImplementedYetException = exports.MUSTNeverHappenException = exports.ImplementationMissingException = exports.BadImplementationException = exports.Exception = exports.CustomException = exports.isErrorOfType = void 0;
|
|
24
24
|
const utils_1 = require("../logger/utils");
|
|
25
25
|
/**
|
|
26
26
|
* # <ins>isErrorOfType</ins>
|
|
@@ -182,6 +182,12 @@ class WhoCallThisException extends CustomException {
|
|
|
182
182
|
}
|
|
183
183
|
}
|
|
184
184
|
exports.WhoCallThisException = WhoCallThisException;
|
|
185
|
+
class ConfigMissingException extends CustomException {
|
|
186
|
+
constructor(message, cause) {
|
|
187
|
+
super(ConfigMissingException, message, cause);
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
exports.ConfigMissingException = ConfigMissingException;
|
|
185
191
|
/**
|
|
186
192
|
* # <ins>AssertionException</ins>
|
|
187
193
|
* This class inherits {@link CustomException} and functions like it, after setting the exceptionType property as "AssertionException",
|
package/package.json
CHANGED
package/utils/types.d.ts
CHANGED
|
@@ -238,3 +238,10 @@ export type WithRequired<T, K extends keyof T> = T & {
|
|
|
238
238
|
[P in K]-?: T[P];
|
|
239
239
|
};
|
|
240
240
|
export type AsyncVoidFunction = () => Promise<void>;
|
|
241
|
+
declare const brand: unique symbol;
|
|
242
|
+
export type Brand<T, Brand extends string> = T & {
|
|
243
|
+
[brand]: Brand;
|
|
244
|
+
};
|
|
245
|
+
export type RelativePath = Brand<string, 'RelativePath'>;
|
|
246
|
+
export type AbsolutePath = Brand<string, 'AbsolutePath'>;
|
|
247
|
+
export {};
|