public static class Assert0.ToolBox extends Object implements AssertBehavior
断言失败时则抛出 ToolBoxException 例外
| 限定符和类型 | 方法和说明 |
|---|---|
void |
newException(String errorMessage)
抛出新的异常
|
void |
newException(String template,
Object... args)
抛出新的异常
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitfoundClass, foundClass, notEmpty, notNull, notNull, notTrue, notTruepublic void newException(String errorMessage)
AssertBehaviornewException 在接口中 AssertBehaviorerrorMessage - 异常消息public void newException(String template, Object... args)
AssertBehaviornewException 在接口中 AssertBehaviortemplate - 异常消息模板args - 模板替换参数Copyright © 2019. All rights reserved.