+ 4

Custom exception

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

22nd Oct 2018, 4:36 AM
harshit
harshit - avatar
2 Réponses
+ 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.
22nd Oct 2018, 5:21 AM
John Wells
John Wells - avatar
0
for acces it
22nd Oct 2018, 1:10 PM
Faze amuzante frumoase şi distractive E24
Faze amuzante frumoase şi distractive E24 - avatar