(from: string, to: string)
| 32 | /** 状态流转非法 */ |
| 33 | export 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 | } |
nothing calls this directly
no outgoing calls
no test coverage detected