diff options
Diffstat (limited to 'java/12-error-handling-2/Maths.java')
| -rw-r--r-- | java/12-error-handling-2/Maths.java | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/java/12-error-handling-2/Maths.java b/java/12-error-handling-2/Maths.java deleted file mode 100644 index b61a9f2..0000000 --- a/java/12-error-handling-2/Maths.java +++ /dev/null @@ -1,11 +0,0 @@ -public class Maths { - - public int factorial(int number) throws MathsException { - if (number < 0) { - MathsException e = new MathsException("Factorial of " + number + " not defined"); -// e.setX(100); - throw e; - } - return number == 0 ? 1 : number * factorial(number - 1); - } -} |
