public class MyTest {
  public static void m() throws MyException {
    throw new MyException("This is an error!");
  }
  public static void main(String args[]) {
    try {
      m();
    } catch (MyException e) {
      e.printStackTrace();
      System.out.println("\n--//--\n");
      System.out.println(e.getMessage());
    }
  }
}
