Class: AiEnhancerError
Defined in: packages/ai-enhancer/src/entities/error/model/types.ts:25
The one error type carried by uc:error's detail.error. Every value thrown out of a generation/edit run is normalized into this class at the dispatch site; the original thrown value is always preserved on .cause. The UI maps code to a localized message (ai-enhancer-error-<code>).
Extends
Error
Constructors
Constructor
ts
new AiEnhancerError(message, options?): AiEnhancerError;Defined in: packages/ai-enhancer/src/entities/error/model/types.ts:31
Parameters
| Parameter | Type |
|---|---|
message | string |
options | AiEnhancerErrorOptions |
Returns
AiEnhancerError
Overrides
ts
Error.constructorProperties
cause?
ts
readonly optional cause?: unknown;Defined in: packages/ai-enhancer/src/entities/error/model/types.ts:29
code
ts
readonly code: AiEnhancerErrorCode;Defined in: packages/ai-enhancer/src/entities/error/model/types.ts:26
source?
ts
readonly optional source?: string;Defined in: packages/ai-enhancer/src/entities/error/model/types.ts:27