java.lang.IllegalStateException in .NET?

Java.NetException

Java Problem Overview


Description for java.lang.IllegalStateException from the Java docs:

> Signals that a method has been invoked at an illegal or inappropriate time. In other words, the Java environment or Java application is not in an appropriate state for the requested operation.

Is there an equivalent for IllegalStateException in the .NET-Framework?

Java Solutions


Solution 1 - Java

System.InvalidOperationException

> The exception that is thrown when a > method call is invalid for the > object's current state.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionBobView Question on Stackoverflow
Solution 1 - JavaTamas CzinegeView Answer on Stackoverflow