Skip to content

Class: AiImageEditorError ​

Defined in: packages/ai-image-editor/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-image-editor-error-<code>).

Extends ​

  • Error

Constructors ​

Constructor ​

ts
new AiImageEditorError(message, options?): AiImageEditorError;

Defined in: packages/ai-image-editor/src/entities/error/model/types.ts:31

Parameters ​

ParameterType
messagestring
optionsAiImageEditorErrorOptions

Returns ​

AiImageEditorError

Overrides ​

ts
Error.constructor

Properties ​

cause? ​

ts
readonly optional cause?: unknown;

Defined in: packages/ai-image-editor/src/entities/error/model/types.ts:29


code ​

ts
readonly code: AiImageEditorErrorCode;

Defined in: packages/ai-image-editor/src/entities/error/model/types.ts:26


source? ​

ts
readonly optional source?: string;

Defined in: packages/ai-image-editor/src/entities/error/model/types.ts:27