Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有人可以给我一些指示,告诉我如何从球衣类中传播一个例外,让我们说一个 JSP,如果可能的话,还有一些例子..
提前感谢阿迪尔
使用运行时异常来传播异常。如果客户端是 Web 应用程序,JSR311 api 中的 WebApplicationException 会为您做同样的事情。
否则,检查异常就足够了