@archtx/procedures 1.1.17 → 2.0.0
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/dist/src/errors.js +4 -4
- package/dist/src/errors.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/errors.ts +4 -4
package/package.json
CHANGED
package/src/errors.ts
CHANGED
|
@@ -11,7 +11,7 @@ export class ProcedureError extends Error {
|
|
|
11
11
|
super(message)
|
|
12
12
|
this.name = 'ProcedureError'
|
|
13
13
|
|
|
14
|
-
// https://www.dannyguo.com/blog/how-to-fix-instanceof-not-working-for-custom-errors-in-typescript/
|
|
14
|
+
// https://www.dannyguo.com/blog/how-to-fix-instanceof-not-working-for-custom-errors-in-typescript/
|
|
15
15
|
Object.setPrototypeOf(this, ProcedureError.prototype)
|
|
16
16
|
}
|
|
17
17
|
}
|
|
@@ -24,7 +24,7 @@ export class ProcedureHookError extends ProcedureError {
|
|
|
24
24
|
super(procedureName, ProcedureCodes.PRECONDITION_FAILED, message)
|
|
25
25
|
this.name = 'ProcedureHookError'
|
|
26
26
|
|
|
27
|
-
// https://www.dannyguo.com/blog/how-to-fix-instanceof-not-working-for-custom-errors-in-typescript/
|
|
27
|
+
// https://www.dannyguo.com/blog/how-to-fix-instanceof-not-working-for-custom-errors-in-typescript/
|
|
28
28
|
Object.setPrototypeOf(this, ProcedureHookError.prototype)
|
|
29
29
|
}
|
|
30
30
|
}
|
|
@@ -38,7 +38,7 @@ export class ProcedureValidationError extends ProcedureError {
|
|
|
38
38
|
super(procedureName, ProcedureCodes.VALIDATION_ERROR, message)
|
|
39
39
|
this.name = 'ProcedureValidationError'
|
|
40
40
|
|
|
41
|
-
// https://www.dannyguo.com/blog/how-to-fix-instanceof-not-working-for-custom-errors-in-typescript/
|
|
41
|
+
// https://www.dannyguo.com/blog/how-to-fix-instanceof-not-working-for-custom-errors-in-typescript/
|
|
42
42
|
Object.setPrototypeOf(this, ProcedureValidationError.prototype)
|
|
43
43
|
}
|
|
44
44
|
}
|
|
@@ -48,7 +48,7 @@ export class ProcedureRegistrationError extends Error {
|
|
|
48
48
|
super(message)
|
|
49
49
|
this.name = 'ProcedureRegistrationError'
|
|
50
50
|
|
|
51
|
-
// https://www.dannyguo.com/blog/how-to-fix-instanceof-not-working-for-custom-errors-in-typescript/
|
|
51
|
+
// https://www.dannyguo.com/blog/how-to-fix-instanceof-not-working-for-custom-errors-in-typescript/
|
|
52
52
|
Object.setPrototypeOf(this, ProcedureRegistrationError.prototype)
|
|
53
53
|
}
|
|
54
54
|
}
|