Skip to content

Documentation / @geoverse/editor-core / EditError

Class: EditError

Defined in: packages/editor-core/src/errors.ts:2

命令规划/校验阶段的可预期失败。引擎捕获后转为 EditResult,不向上抛。

Extends

  • Error

Constructors

Constructor

ts
new EditError(message, code?): EditError;

Defined in: packages/editor-core/src/errors.ts:4

Parameters

message

string

code?

string

Returns

EditError

Overrides

ts
Error.constructor

Properties

cause?

ts
optional cause?: unknown;

Defined in: node_modules/.pnpm/typescript@6.0.3/node_modules/typescript/lib/lib.es2022.error.d.ts:24

Inherited from

ts
Error.cause

code?

ts
readonly optional code?: string;

Defined in: packages/editor-core/src/errors.ts:3


message

ts
message: string;

Defined in: node_modules/.pnpm/typescript@6.0.3/node_modules/typescript/lib/lib.es5.d.ts:1075

Inherited from

ts
Error.message

name

ts
name: string;

Defined in: node_modules/.pnpm/typescript@6.0.3/node_modules/typescript/lib/lib.es5.d.ts:1074

Inherited from

ts
Error.name

stack?

ts
optional stack?: string;

Defined in: node_modules/.pnpm/typescript@6.0.3/node_modules/typescript/lib/lib.es5.d.ts:1076

Inherited from

ts
Error.stack