com.xiaoleilu.hutool.json.JSONException Maven / Gradle / Ivy
package com.xiaoleilu.hutool.json;
import com.xiaoleilu.hutool.util.StrUtil;
/**
* JSON异常
*
* @author looly
* @since 3.0.2
*/
public class JSONException extends RuntimeException {
private static final long serialVersionUID = 0;
public JSONException(final String message) {
super(message);
}
public JSONException(final String message, final Throwable cause) {
super(message, cause);
}
public JSONException(final Throwable cause) {
super(cause.getMessage(), cause);
}
public JSONException(Throwable throwable, String messageTemplate, Object... params) {
super(StrUtil.format(messageTemplate, params), throwable);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy