Java.lang.IllegalStateException in .NET?

Description of java.lang.IllegalStateException from Java docs:

Signals that the method was called at an illegal or inappropriate time. In other words, the Java environment or Java application is not in the appropriate state for the requested operation.

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

+60
java exception
Jan 21
source share
1 answer

System.InvalidOperationException

An exception is thrown when a method call is invalid for the current state of an object.

+78
Jan 21 '10 at 10:59
source share



All Articles