Throws `StateNotFound` exception if a state is not found.
Throws
StateNotFoundexception if a state is not found.