How to catch an exception and email information about it in liferay portlet

Posted by heikkim on Stack Overflow See other posts from Stack Overflow or by heikkim
Published on 2010-10-14T06:32:33Z Indexed on 2011/01/10 15:53 UTC
Read the original article Hit count: 266

Filed under:
|
|
|

I have a custom portlet made for liferay and sometimes it throws an exception. Why it throws exceptions is irrelevant.

How to catch exceptions thrown by portlet handler methods in order to email information about them? I know I could do try catching on every handler method but it would be a much more elegant and cleaner solution to catch the exception on a higher level and just email some information about the error.

I'm using Spring Portlet MVC, so i got all spring-related niceties at hand.

© Stack Overflow or respective owner

Related posts about exception

Related posts about spring-mvc