From 530141c542ab3b44991f05016e66db651795e9c9 Mon Sep 17 00:00:00 2001 From: Kamal Wickramanayake Date: Sat, 21 Feb 2026 20:33:23 +0530 Subject: Added java/collections and java/error handling sample code --- java/12-error-handling-2/MathsException.java | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 java/12-error-handling-2/MathsException.java (limited to 'java/12-error-handling-2/MathsException.java') diff --git a/java/12-error-handling-2/MathsException.java b/java/12-error-handling-2/MathsException.java new file mode 100644 index 0000000..bdbaf81 --- /dev/null +++ b/java/12-error-handling-2/MathsException.java @@ -0,0 +1,22 @@ +public class MathsException extends Exception { + + public MathsException() { + // TODO Auto-generated constructor stub + } + + public MathsException(String message) { + super(message); + // TODO Auto-generated constructor stub + } + + public MathsException(Throwable cause) { + super(cause); + // TODO Auto-generated constructor stub + } + + public MathsException(String message, Throwable cause) { + super(message, cause); + // TODO Auto-generated constructor stub + } + +} -- cgit v1.2.3