com.xiaoleilu.hutool.comparator.ComparatorException Maven / Gradle / Ivy
package com.xiaoleilu.hutool.comparator;
import com.xiaoleilu.hutool.exceptions.ExceptionUtil;
import com.xiaoleilu.hutool.util.StrUtil;
/**
* 比较异常
* @author xiaoleilu
*/
public class ComparatorException extends RuntimeException{
private static final long serialVersionUID = 4475602435485521971L;
public ComparatorException(Throwable e) {
super(ExceptionUtil.getMessage(e), e);
}
public ComparatorException(String message) {
super(message);
}
public ComparatorException(String messageTemplate, Object... params) {
super(StrUtil.format(messageTemplate, params));
}
public ComparatorException(String message, Throwable throwable) {
super(message, throwable);
}
public ComparatorException(Throwable throwable, String messageTemplate, Object... params) {
super(StrUtil.format(messageTemplate, params), throwable);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy