Alexandre Dumas said this quote

the greater number of a man's errors come before him disguised under the specious form of necessity; then, after error has been committed in a moment of excitement, of delirium, or of fear, we see that we might have avoided and escaped it.