com.wujiuye.hotkit.json.util.DateFormatException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of hotkit-json Show documentation
Show all versions of hotkit-json Show documentation
hotkits项目集合中的一员,JSON适配器组件,让切换JSON解析框架只需要切换依赖包即可。
The newest version!
package com.wujiuye.hotkit.json.util;
/**
* 日期格式化异常
*
* @author wujiuye 2020/09/09
*/
public class DateFormatException extends RuntimeException {
private String dateStr;
public DateFormatException(String dateStr) {
super("日期格式化异常!");
this.dateStr = dateStr;
}
@Override
public String getLocalizedMessage() {
return this.getMessage();
}
@Override
public String getMessage() {
return "日期格式化异常,日期字符串:" + dateStr;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy