I have been in both situations:
In both cases the project s
While creating your own exception:
All exceptions must be a child of the Throwable Class
If you want to write a checked exception that is automatically enforced by the Handle or Declare Rule, you need to extend the Exception Class
If you want to write a runtime execption, you need to extend the Runtime Exception Class.