In case, there is no default exception you could use. Make one yourself.
The functions already exists in the built-in Exception class, the only thing to do: is to add a personalised exception
to use this function you also extend the class you are working in:
Because the “super” function has to be placed first in a constructor, you can’t add the “super” statement to a random method.
There are two ways, to solve this problem: