
com.github.antelopeframework.BizException Maven / Gradle / Ivy
The newest version!
package com.github.antelopeframework;
import com.github.antelopeframework.text.format.MessageFormatter;
/**
*
* @author yangzhi
*
*/
public class BizException extends Exception {
private static final long serialVersionUID = 2489531688803100876L;
/**
* 默认构造函数.
*/
public BizException() {
super();
}
/**
*
* @param cause
*/
public BizException(Throwable cause) {
super(cause);
}
/**
*
* @param cause
* @param format
* @param formatArgs
*/
public BizException(Throwable cause, String format, Object... formatArgs) {
super(getFormattedMessage(format, formatArgs), cause);
}
/**
*
* @param format
* @param formatArgs
*/
public BizException(String format, Object... formatArgs) {
super(getFormattedMessage(format, formatArgs));
}
/**
*
* @param format
* @param formatArgs
* @return
*/
protected static String getFormattedMessage(String format, Object... formatArgs) {
return MessageFormatter.getFormattedMessage(format, formatArgs);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy