类 ServiceExceptionUtil
java.lang.Object
cn.jrack.core.exception.util.ServiceExceptionUtil
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static voidstatic String将错误编号对应的消息使用 params 进行格式化。static ServiceExceptionstatic ServiceExceptionstatic ServiceException创建指定编号的 ServiceException 的异常static ServiceException创建指定编号的 ServiceException 的异常static ServiceExceptionexception0(Integer code, String messagePattern, Object... params) static voidstatic void
-
构造器详细资料
-
ServiceExceptionUtil
public ServiceExceptionUtil()
-
-
方法详细资料
-
putAll
-
put
-
delete
-
exception
-
exception
-
exception
创建指定编号的 ServiceException 的异常- 参数:
code- 编号- 返回:
- 异常
-
exception
创建指定编号的 ServiceException 的异常- 参数:
code- 编号params- 消息提示的占位符对应的参数- 返回:
- 异常
-
exception0
-
doFormat
将错误编号对应的消息使用 params 进行格式化。- 参数:
code- 错误编号messagePattern- 消息模版params- 参数- 返回:
- 格式化后的提示
-