Skip to content

Commit 3ef225f

Browse files
committed
jun2
1 parent 68dbbba commit 3ef225f

44 files changed

Lines changed: 91 additions & 154 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

Later/Exception/Exception_31/ExceptionDemo/.classpath renamed to BasicJava/ExceptionDemo_CustomException_V1_App/ExceptionDemo/.classpath

File renamed without changes.

Later/Exception/Exception_31/ExceptionDemo/.project renamed to BasicJava/ExceptionDemo_CustomException_V1_App/ExceptionDemo/.project

File renamed without changes.

Later/Exception/Exception_31/ExceptionDemo/.settings/org.eclipse.jdt.core.prefs renamed to BasicJava/ExceptionDemo_CustomException_V1_App/ExceptionDemo/.settings/org.eclipse.jdt.core.prefs

File renamed without changes.
Binary file not shown.
Binary file not shown.

Later/Exception/Exception_31/ExceptionDemo/src/CustomExceptionDemo.java renamed to BasicJava/ExceptionDemo_CustomException_V1_App/ExceptionDemo/src/CustomExceptionDemo.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ public static void main(String[] args)
88
CustomExceptionDemo customExceptionDemo = new CustomExceptionDemo();
99
customExceptionDemo.validate(15);
1010
}
11-
catch (InvalidAgeException InvalidAgeException)
11+
catch (InvalidAgeException invalidAgeException)
1212
{
13-
InvalidAgeException.printStackTrace();
14-
System.out.println("message = "+InvalidAgeException.getMessage());
13+
invalidAgeException.printStackTrace();
14+
System.out.println("message = "+invalidAgeException.getMessage());
1515
}
1616

1717
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
public class InvalidAgeException extends Exception
2+
{
3+
4+
public InvalidAgeException(String message)
5+
{
6+
super(message);
7+
}
8+
9+
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
InvalidAgeException: Not a valid age to apply for Govt. jobs
2+
at CustomExceptionDemo.validate(CustomExceptionDemo.java:23)
3+
at CustomExceptionDemo.main(CustomExceptionDemo.java:9)
4+
message = Not a valid age to apply for Govt. jobs

Later/Exception/Exception_32/ExceptionDemo/.classpath renamed to BasicJava/ExceptionDemo_CustomException_V2_App/ExceptionDemo/.classpath

File renamed without changes.

Later/Exception/Exception_32/ExceptionDemo/.project renamed to BasicJava/ExceptionDemo_CustomException_V2_App/ExceptionDemo/.project

File renamed without changes.

0 commit comments

Comments
 (0)