继承你要自定义异常的类,例如我要对RuntimeException自定义异常 简单代码模板:
首先引入jodatime jar <dependency> <groupId>joda-timegroupId> <artifactId>jod...