title: Is there a Java equivalent of C#'s InvalidOperationException?
body: <p>I'm converting some C# code to Java and I need to include an exception that is similar to C#'s InvalidOperationException. Does such a thing exist? Also is there a list of equivalent exception types in the two languages? Thanks.
  <hr/>
  I think in my particular case IllegalStateException is most appropriate. Thanks for all the responses.</p>