Merge pull request #6921 from asturcon/BAEL-2427-getCauseException

Bael 2427 get cause exception
This commit is contained in:
Erik Pragt
2019-05-10 09:47:09 +08:00
committed by GitHub
4 changed files with 5 additions and 497 deletions
+1 -1
View File
@@ -454,7 +454,7 @@
<gson.version>2.8.2</gson.version>
<!-- util -->
<commons-lang3.version>3.5</commons-lang3.version>
<commons-lang3.version>3.9</commons-lang3.version>
<commons-io.version>2.5</commons-io.version>
<commons-math3.version>3.6.1</commons-math3.version>
<decimal4j.version>1.0.3</decimal4j.version>
@@ -30,7 +30,7 @@ public class RootCauseFinder {
private AgeCalculator() {
}
public static int calculateAge(String birthDate) throws CalculationException {
public static int calculateAge(String birthDate) {
if (birthDate == null || birthDate.isEmpty()) {
throw new IllegalArgumentException();
}
@@ -44,7 +44,7 @@ public class RootCauseFinder {
}
}
private static LocalDate parseDate(String birthDateAsString) throws DateParseException {
private static LocalDate parseDate(String birthDateAsString) {
LocalDate birthDate;
try {
@@ -62,14 +62,14 @@ public class RootCauseFinder {
}
static class CalculationException extends Exception {
static class CalculationException extends RuntimeException {
CalculationException(DateParseException ex) {
super(ex);
}
}
static class DateParseException extends Exception {
static class DateParseException extends RuntimeException {
DateParseException(String input) {
super(input);
-492
View File
File diff suppressed because it is too large Load Diff