WorkflowRequestParseError

Class: WorkflowRequestParseError

Defined in: packages/workflow-core/src/server/parse-request.ts:76

Thrown by parseWorkflowRequest when the body cannot be parsed or is not a JSON object. Route handlers should catch and return a 400.

Extends

  • Error

Constructors

Constructor

ts
new WorkflowRequestParseError(message, cause?): WorkflowRequestParseError;
new WorkflowRequestParseError(message, cause?): WorkflowRequestParseError;

Defined in: packages/workflow-core/src/server/parse-request.ts:78

Parameters

message

string

cause?

unknown

Returns

WorkflowRequestParseError

Overrides

ts
Error.constructor
Error.constructor

Properties

cause?

ts
readonly optional cause: unknown;
readonly optional cause: unknown;

Defined in: packages/workflow-core/src/server/parse-request.ts:80

Inherited from

ts
Error.cause
Error.cause

message

ts
message: string;
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
Error.message

name

ts
readonly name: "WorkflowRequestParseError" = 'WorkflowRequestParseError';
readonly name: "WorkflowRequestParseError" = 'WorkflowRequestParseError';

Defined in: packages/workflow-core/src/server/parse-request.ts:77

Overrides

ts
Error.name
Error.name

stack?

ts
optional stack: string;
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
Error.stack