class TaskStateError(AutomataError): ‘An exception raised when the task is not in the correct state for the operation.’ pass