Class: MemoryHarnessError
Defined in: memory-harness-error.ts:9
Structured domain error thrown by @paraharness/memory operations.
Carries a deterministic machine-readable code (MemoryErrorCode) and optional diagnostic details metadata alongside the human-readable error message.
Extends
Error
Constructors
Constructor
ts
new MemoryHarnessError(
code,
message,
details?
): MemoryHarnessError;Defined in: memory-harness-error.ts:23
Creates a new MemoryHarnessError instance.
Parameters
| Parameter | Type | Description |
|---|---|---|
code | | "CONFIG_NOT_FOUND" | "CONFIG_VALIDATION_FAILED" | "INVALID_ROLE" | "VALIDATION_FAILED" | "LESSON_FORMAT_INVALID" | "CAP_EXCEEDED" | "RECORD_NOT_FOUND" | "RULE_PROTECTION_VIOLATION" | "DISTILLER_EXECUTION_FAILED" | "GIT_SYNC_FAILED" | Machine-readable error code. |
message | string | Actionable diagnostic message. |
details? | Readonly<Record<string, unknown>> | Optional structured metadata. |
Returns
MemoryHarnessError
Overrides
Error.constructor
Properties
code
ts
readonly code:
| "CONFIG_NOT_FOUND"
| "CONFIG_VALIDATION_FAILED"
| "INVALID_ROLE"
| "VALIDATION_FAILED"
| "LESSON_FORMAT_INVALID"
| "CAP_EXCEEDED"
| "RECORD_NOT_FOUND"
| "RULE_PROTECTION_VIOLATION"
| "DISTILLER_EXECUTION_FAILED"
| "GIT_SYNC_FAILED";Defined in: memory-harness-error.ts:11
Deterministic machine-readable error code identifying the failure category.
details
ts
readonly details: Readonly<Record<string, unknown>> | undefined;Defined in: memory-harness-error.ts:14
Optional structured diagnostic context associated with the error.