So I'm making a method to get the Error Type, and display a message accordingly based on that...
Error: FileNotFoundExc eption is a 'type' used like a 'variable'
Code:
switch (exception) {
case FileNotFoundException:
// do stuff...
break;
Comment