To create your own exception, extend Exception or RuntimeException (depending on whether you want a check or an uncheck exception)


public class MyException extends Exception
{}// really no code...