This site describes solve-engine 2.44.0, the version npm installs.
WorkerErrorCodes
const WorkerErrorCodes: { WORKER_ARGUMENT_NOT_CLONEABLE: "WORKER_ARGUMENT_NOT_CLONEABLE"; WORKER_CANCELLED: "WORKER_CANCELLED"; WORKER_NOT_INITIALISED: "WORKER_NOT_INITIALISED"; WORKER_TERMINATED: "WORKER_TERMINATED"; WORKER_TRANSPORT_FAILED: "WORKER_TRANSPORT_FAILED"; WORKER_UNKNOWN_METHOD: "WORKER_UNKNOWN_METHOD"; WORKER_UNKNOWN_PACKAGE: "WORKER_UNKNOWN_PACKAGE";};Defined in: packages/engine/src/errors/WorkerError.ts:21
Codes the worker harness owns, co-located here rather than unioned into the
core catalog, matching the convention errors/ErrorCode.ts documents for a
domain that keeps its own small code object.
Type Declaration
Section titled “Type Declaration”WORKER_ARGUMENT_NOT_CLONEABLE
Section titled “WORKER_ARGUMENT_NOT_CLONEABLE”readonly WORKER_ARGUMENT_NOT_CLONEABLE: "WORKER_ARGUMENT_NOT_CLONEABLE" = "WORKER_ARGUMENT_NOT_CLONEABLE";A call’s arguments could not be copied across the boundary (a function, a symbol, an object postMessage refuses). Rejected main-side, before anything is sent.
WORKER_CANCELLED
Section titled “WORKER_CANCELLED”readonly WORKER_CANCELLED: "WORKER_CANCELLED" = "WORKER_CANCELLED";The caller aborted the request through its AbortSignal.
WORKER_NOT_INITIALISED
Section titled “WORKER_NOT_INITIALISED”readonly WORKER_NOT_INITIALISED: "WORKER_NOT_INITIALISED" = "WORKER_NOT_INITIALISED";A request arrived before the runtime finished building its engine.
WORKER_TERMINATED
Section titled “WORKER_TERMINATED”readonly WORKER_TERMINATED: "WORKER_TERMINATED" = "WORKER_TERMINATED";The worker engine was torn down while a request was still in flight.
WORKER_TRANSPORT_FAILED
Section titled “WORKER_TRANSPORT_FAILED”readonly WORKER_TRANSPORT_FAILED: "WORKER_TRANSPORT_FAILED" = "WORKER_TRANSPORT_FAILED";The transport failed or the worker exited before answering.
WORKER_UNKNOWN_METHOD
Section titled “WORKER_UNKNOWN_METHOD”readonly WORKER_UNKNOWN_METHOD: "WORKER_UNKNOWN_METHOD" = "WORKER_UNKNOWN_METHOD";A request named a method the runtime does not expose.
WORKER_UNKNOWN_PACKAGE
Section titled “WORKER_UNKNOWN_PACKAGE”readonly WORKER_UNKNOWN_PACKAGE: "WORKER_UNKNOWN_PACKAGE" = "WORKER_UNKNOWN_PACKAGE";An init named a package the runtime could not resolve.