Try and Catch in Apex

Sample code for use of try and catch:

      try
      {    
        temp = Apexpages.currentPage().getParameters().get('memNam');
      }
      catch(Exception e)
      {
        temp = e.getMessage();       
      }


Cheers!!!

No comments:

Post a Comment