Desperation was an intense emotional state of hopelessness, anxiety, and despair that could lead to extreme actions or reckless behavior.
In 2365, Captain Jean-Luc Picard said to Data, "I understand your desperation. The shock of learning you were dying. But you had no right to do what you have done." (TNG: "The Schizoid Man")