当被测dut发生短路或其他异常导致电流或电压过高时,钳位电路会将输出电压或电流限制在一个固定值上,以保护器件不被损坏。
Meanwhile, the clamp circuit will limit the output voltage or current at a fixed value when they are abnormal that caused by a DUT short circuit or other fault in order to protect the device.
这并不是说某些规则(如格式设置规则)不重要,而是应该将它们与其他问题进行比较权衡,例如空指针或处理不当的异常。
That is not to say that some rules, like formatting rules, are not important, just that they should be weighed in comparison to other issues, such as null Pointers or mishandled exceptions.
但是如果您想要测试异常的详细消息或其他属性,则仍然需要使用旧式的try - catch样式。
However, you'll still need to use the old try-catch style if you want to test the exception's detail message or other properties.
应用推荐