
com.y3tu.tool.ssh.JschRuntimeException Maven / Gradle / Ivy
package com.y3tu.tool.ssh;
import com.y3tu.tool.core.exception.ExceptionUtil;
import com.y3tu.tool.core.text.StringUtils;
/**
* Jsch异常
* @author xiaoleilu
*/
public class JschRuntimeException extends RuntimeException{
private static final long serialVersionUID = 8247610319171014183L;
public JschRuntimeException(Throwable e) {
super(ExceptionUtil.getMessage(e), e);
}
public JschRuntimeException(String message) {
super(message);
}
public JschRuntimeException(String messageTemplate, Object... params) {
super(StringUtils.format(messageTemplate, params));
}
public JschRuntimeException(String message, Throwable throwable) {
super(message, throwable);
}
public JschRuntimeException(Throwable throwable, String messageTemplate, Object... params) {
super(StringUtils.format(messageTemplate, params), throwable);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy