, MyException, Exception . .
, Throwable :
public MyException() {
super();
}
public MyException(String message) {
super(message);
}
. : , MyClass:
public static void myMethod() throws MyException{
}
myMethod() :
try{
MyClass.myMethod();
} catch (MyException e){
e.getCause();
}
, , e.getCause() null. , .