Commit b643535f authored by Quxl's avatar Quxl

x

parent d233c2ad
package com.egolm.sso.util; package com.egolm.sso.util;
import java.text.DateFormat; import java.text.DateFormat;
import java.text.ParseException;
import java.text.SimpleDateFormat; import java.text.SimpleDateFormat;
import java.util.Date; import java.util.Date;
...@@ -25,7 +24,7 @@ public class DateUtil { ...@@ -25,7 +24,7 @@ public class DateUtil {
try { try {
DateFormat df = new SimpleDateFormat(fmt); DateFormat df = new SimpleDateFormat(fmt);
return df.parse(dateString); return df.parse(dateString);
} catch (Exception e) { } catch (Throwable e) {
throw new XRException("Error date value " + dateString, e); throw new XRException("Error date value " + dateString, e);
} }
} }
...@@ -38,7 +37,7 @@ public class DateUtil { ...@@ -38,7 +37,7 @@ public class DateUtil {
} else { } else {
try { try {
return format_HHmmss.parse(timeString); return format_HHmmss.parse(timeString);
} catch (ParseException e) { } catch (Throwable e) {
throw new XRException("Error time value " + timeString, e); throw new XRException("Error time value " + timeString, e);
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment