Foros de discusión

PortalException vs. SystemException

Richard Gal, modificado hace 15 años.

PortalException vs. SystemException

New Member Mensajes: 19 Fecha de incorporación: 24/04/08 Mensajes recientes
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 hace 14 años.

RE: PortalException vs. SystemException

New Member Mensaje: 1 Fecha de incorporación: 23/06/09 Mensajes recientes
Hello you all out there,

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

Hmm??
thumbnail
mohammad azaruddin, modificado hace 10 años.

RE: PortalException vs. SystemException

Expert Mensajes: 492 Fecha de incorporación: 17/09/12 Mensajes recientes

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.