This commit is contained in:
parent
70373a6dc9
commit
9051b35491
2
grip.ts
2
grip.ts
|
@ -31,7 +31,7 @@ export class Err extends Error {
|
||||||
of(cls: any): boolean {
|
of(cls: any): boolean {
|
||||||
return this.Of(cls);
|
return this.Of(cls);
|
||||||
}
|
}
|
||||||
static fromCatch(error: any): Error {
|
static fromCatch(error: any): Status {
|
||||||
const e = new Err(typeof error === "string" ? error : error.message);
|
const e = new Err(typeof error === "string" ? error : error.message);
|
||||||
e.cause = error;
|
e.cause = error;
|
||||||
e.stack = error.stack;
|
e.stack = error.stack;
|
||||||
|
|
Loading…
Reference in a new issue