@asaidimu/utils-workspace 7.0.1 → 7.0.2
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/README.md +16 -0
- package/index.d.mts +432 -229
- package/index.d.ts +432 -229
- package/index.js +1 -1
- package/index.mjs +1 -1
- package/package.json +2 -3
package/README.md
CHANGED
|
@@ -403,6 +403,22 @@ Full re-build of Index via parallel execution of all registered `Indexers`.
|
|
|
403
403
|
|
|
404
404
|
## 16. Troubleshooting
|
|
405
405
|
|
|
406
|
+
### Error Handling with `SystemError`
|
|
407
|
+
|
|
408
|
+
All operational and validation errors should be thrown using `SystemError` from `@core/error` (re-exported via `kernel/types/errors.ts`).
|
|
409
|
+
|
|
410
|
+
```typescript
|
|
411
|
+
import { SystemError, CommonErrors } from "@core/error";
|
|
412
|
+
|
|
413
|
+
// Example
|
|
414
|
+
throw new SystemError({
|
|
415
|
+
code: CommonErrors.VALIDATION_FAILED,
|
|
416
|
+
message: "Invalid input",
|
|
417
|
+
});
|
|
418
|
+
```
|
|
419
|
+
|
|
420
|
+
This allows for structured error logging and machine-readable error codes.
|
|
421
|
+
|
|
406
422
|
### Stale Index
|
|
407
423
|
|
|
408
424
|
Ensure reducers return the correct patch. Call `workspace:sync` to force a rebuild.
|