简体   繁体   English

.NET中的java.lang.IllegalStateException?

[英]java.lang.IllegalStateException in .NET?

Description for java.lang.IllegalStateException from the Java docs: Java文档中java.lang.IllegalStateException描述:

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. 换句话说,Java环境或Java应用程序未处于所请求操作的适当状态。

Is there an equivalent for IllegalStateException in the .NET-Framework? .NET-Framework中是否存在IllegalStateException的等价物?

System.InvalidOperationException

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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