1 Reply Latest reply on Oct 16, 2007 10:17 PM by Joshua Jackson

    noobie->how to write custom exception

    Stateless Bean Novice

      Can anyone tell me how to write my custom exception handler class?

      here is my seam methow

      public void myMethod() {
       try {
       catch (MyException e) {

      and my class
      public class MyException extends Exception {
       public MyException (String message)

      but i get error:

      Unreachable catch block for MyException . This exception is never thrown from the try
      statement body

      what should I do?