Custom exception | SoloLearn: Learn to code for FREE!

+4

Custom exception

why we use super(message) when we have already used e.getMessage()

10/22/2018 4:36:33 AM

harshit

2 Answers

New Answer

+4

When you throw your exception, you need to store the message into the super's data so it is there for getMessage() to access.

0