简体   繁体   中英

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?

System.InvalidOperationException

方法调用对于对象的当前状态无效时引发的异常。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM