All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.xphsc.convert.ConvertException Maven / Gradle / Ivy

There is a newer version: 1.2.3
Show newest version
package com.github.xphsc.convert;

import com.github.xphsc.exception.ExceptionUtil;
import com.github.xphsc.util.StringUtil;

/**
 * Created by ${huipei.x} on 2017-5-25.
 */
public class ConvertException extends RuntimeException {

    private static final long serialVersionUID = 4730597402855274362L;

    public ConvertException(Throwable e) {
        super(ExceptionUtil.getMessage(e), e);
    }

    public ConvertException(String message) {
        super(message);
    }

    public ConvertException(String messageTemplate, Object... params) {
        super(StringUtil.format(messageTemplate, params));
    }

    public ConvertException(String message, Throwable throwable) {
        super(message, throwable);
    }

    public ConvertException(Throwable throwable, String messageTemplate, Object... params) {
        super(StringUtil.format(messageTemplate, params), throwable);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy