Struct qt_core::q_state_machine::Error
source · pub struct Error(/* private fields */);
Expand description
This enum type defines errors that can occur in the state machine at run time. When the state machine encounters an unrecoverable error at run time, it will set the error code returned by error(), the error message returned by errorString(), and enter an error state based on the context of the error.
C++ enum: QStateMachine::Error
.
This enum type defines errors that can occur in the state machine at run time. When the state machine encounters an unrecoverable error at run time, it will set the error code returned by error(), the error message returned by errorString(), and enter an error state based on the context of the error.
See also setErrorState().
Implementations§
source§impl Error
impl Error
sourcepub const NoInitialStateError: Error = _
pub const NoInitialStateError: Error = _
The machine has entered a QState with children which does not have an initial state set. The context of this error is the state which is missing an initial state. (C++ enum variant: NoInitialStateError = 1
)
sourcepub const NoDefaultStateInHistoryStateError: Error = _
pub const NoDefaultStateInHistoryStateError: Error = _
The machine has entered a QHistoryState which does not have a default state set. The context of this error is the QHistoryState which is missing a default state. (C++ enum variant: NoDefaultStateInHistoryStateError = 2
)
sourcepub const NoCommonAncestorForTransitionError: Error = _
pub const NoCommonAncestorForTransitionError: Error = _
The machine has selected a transition whose source and targets are not part of the same tree of states, and thus are not part of the same state machine. Commonly, this could mean that one of the states has not been given any parent or added to any machine. The context of this error is the source state of the transition. (C++ enum variant: NoCommonAncestorForTransitionError = 3
)
sourcepub const StateMachineChildModeSetToParallelError: Error = _
pub const StateMachineChildModeSetToParallelError: Error = _
The machine’s childMode property was set to QState::ParallelStates. This is illegal. Only states may be declared as parallel, not the state machine itself. This enum value was added in Qt 5.14. (C++ enum variant: StateMachineChildModeSetToParallelError = 4
)