Fórum

PortalException vs. SystemException

Richard Gal, modificado 15 Anos atrás.

PortalException vs. SystemException

New Member Postagens: 19 Data de Entrada: 24/04/08 Postagens Recentes
Hello

Can somebody explain to me the intended use of com.liferay.portal.PortalException and com.liferay.portal.SystemException?

Further, what is their relation to Liferay (remote) services? It seems that all built-in services throw one or both of these exceptions.

I was searching for the answer in the wiki and on this forum but have not found the answer. Looking into the source code it is only their name that is different.

Thanks in advance,
Richie.
Markus Bollerey, modificado 14 Anos atrás.

RE: PortalException vs. SystemException

New Member Mensagem: 1 Data de Entrada: 23/06/09 Postagens Recentes
Hello you all out there,

interesting issue that Richard brought up. No reactions, or comments?

Hmm??
thumbnail
mohammad azaruddin, modificado 10 Anos atrás.

RE: PortalException vs. SystemException

Expert Postagens: 492 Data de Entrada: 17/09/12 Postagens Recentes

Portal Exception
The base class for all exceptions related to business logic. Examples include invalid input, portlet errors, and references to non existent database records..Portal exceptions are generally caused by user error ,, and do not indicate that anything is wrong with the portal itself.


Example all exceptions created by service builder extends PortalException




System Exception
The base class for all exceptions caused by system problems. Examples include database connection errors and file not found errors.

System exceptions are always unexpected, and generally indicate that the portal is misconfigured or that a critical service is unavailable.