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.
我希望我可以定义一个禁止类捕获给定异常类型的拱形规则。类似于以下规则:
noClasses() .that() .resideOutsideOfPackage("..repository..") .should() .catchExceptions() .that() .areAssignableTo(SQLException.class)
有没有办法在 ArchUnit 中做到这一点?