# Type Alias TransitionErrorCallback

TransitionErrorCallback: (
currentState: AgentState,
attemptedEvent: StateTransitionEvent,
error: AgentError,
) => void

Error callback for invalid transitions.

#### Type Declaration

- - (
    currentState: AgentState,
    attemptedEvent: StateTransitionEvent,
    error: AgentError,
    ): void

  - #### Parameters

    - currentState: AgentState
    - attemptedEvent: StateTransitionEvent
    - error: AgentError

    #### Returns void

- Defined in packages/nexus-agents/src/agents/state-machine-types.ts:48