I'm confused about this in part 4 of the study guide: "Creating & throwing a custom Exception subclass." How do you do this? Are there any resources on moodle for this? Thanks!
All you have to do is create a new class and give it an exception name that has the word "Exception" in it and make that class extend the Exception class or the RuntimeException class.
For better example, you could take a look at the .java files (LowAccountBalanceException.java and BankAccount.java) uploaded on Moodle during week October 31 - November 6 for better example of how to throw a custom Exception class in BankAccount.
Hope this helps!
Create a class and extend the Exception class. Create the new exception and give it your own message to throw or get the message from the Exception class.