1 Reply Latest reply: Dec 7, 2012 6:07 AM by Timo Hahn RSS

    Regarding OAException

    978538
      Hiii,

      I am throwing one OAException to display a error message on my OAF page. But after checking i concluded that Exception is getting thrown but on the page the message is not getting displayed. I tried to display the same exception message with SOP statement using a catch block and it is printing perfectly.Below giving some part of code.
      Please suggest me the solution for the same.

      try
      {
      if((ActualStartDate1.before(strdate))||(ActualStartDate1.before(StandardDate)))
      {
      System.out.println("inside validateStartDate if"); -------------------------->>>>>>>>>getting printed
      throw new OAException("Error occured during save record "); -------------------->>>Not getting displayed on OAF page
      }
      }
      //If i give
      catch(OAException e)
      {
      System.out.println("Exception :"+e);--------------->>>>> printing the exception

      }





      Thanks
      Jyoti Ranjan