Class StateNotFoundException

All Implemented Interfaces:
Serializable

public class StateNotFoundException extends BrobotRuntimeException
Thrown when a requested state cannot be found in the state management system.

This exception indicates that the framework attempted to access or transition to a state that doesn't exist in the current state model. This is a critical error in model-based automation as it suggests either a configuration problem or that the application is in an unexpected state.

Since:
1.0
See Also:
  • Constructor Details

    • StateNotFoundException

      public StateNotFoundException(String stateName)
      Constructs a new state not found exception.
      Parameters:
      stateName - the name of the state that could not be found
    • StateNotFoundException

      public StateNotFoundException(String stateName, String context)
      Constructs a new state not found exception with additional context.
      Parameters:
      stateName - the name of the state that could not be found
      context - additional context about where the state was expected
  • Method Details

    • getStateName

      public String getStateName()
      Gets the name of the state that could not be found.
      Returns:
      the state name