Hint: Creating your own Exception

You can create your own class of Exception and throw it. If you were to dig out your notes from long ago, you'd find the following tips:

I've included a file SampleException.java that shows you how all of this can be done.


Cary Gray
Last modified: Tue Apr 26 07:46:12 CDT 2011