在我的代码中的某个地方,我想抛出一个异常来停止它的执行(因为可能的错误在堆栈中很深)。但是,当我写`
throw new ArgumentException(
String.Format("There is a input error at X position. Execution will stop.");
我收到一个消息框,上面写着“未指定的错误”,然后是消息。我怎样才能使它不显示“未指定的错误”?使这个消息框不出现也可以,因为我可以用自定义的替换它......`