SyntaxFix
Write A Post
Hire A Developer
Questions
public class MyException extends Exception { // special exception code goes here }
Throw it as:
throw new MyException ("Something happened")
Catch as:
catch (MyException e) { // something }