Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

java.lang.IllegalStateException in .NET?

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?

like image 334
Bob Avatar asked Jan 21 '10 10:01

Bob


1 Answers

System.InvalidOperationException

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

like image 139
Tamas Czinege Avatar answered Sep 29 '22 20:09

Tamas Czinege