MCPcopy Create free account
hub / github.com/agent-tower/core / constructor

Method constructor

packages/server/src/errors.ts:34–41  ·  view source on GitHub ↗
(from: string, to: string)

Source from the content-addressed store, hash-verified

32/** 状态流转非法 */
33export class InvalidStateTransitionError extends ServiceError {
34 constructor(from: string, to: string) {
35 super(
36 `Invalid state transition: ${from} → ${to}`,
37 'INVALID_STATE_TRANSITION',
38 400
39 );
40 this.name = 'InvalidStateTransitionError';
41 }
42}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected