Custom exception | SoloLearn: Learn to code for FREE!


Custom exception

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

10/22/2018 4:36:33 AM


2 Answers

New Answer


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