以下例外情况可能非常相似:1. Should I throw them in my code?3. `InvalidOperationException` is a very vague and broad exception as it means a method tries something that is not possible due to state (
我的基本控制器上有一个自定义的ActionFilter,还有一个全局添加的自定义ExceptionFilter。我从我的服务中的一个私有方法中得到了一个异常,这个方法是resharper在Linq语句中使用时调用的方法组(在本例中是一个select)。being caught by the filers
throw new Exception("I am invisible to