Fórumok

PortalException vs. SystemException

Richard Gal, módosítva 15 év-val korábban

PortalException vs. SystemException

New Member Bejegyzések: 19 Csatlakozás dátuma: 2008.04.24. Legújabb bejegyzések
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, módosítva 14 év-val korábban

RE: PortalException vs. SystemException

New Member Bejegyzés: 1 Csatlakozás dátuma: 2009.06.23. Legújabb bejegyzések
Hello you all out there,

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

Hmm??
thumbnail
mohammad azaruddin, módosítva 10 év-val korábban

RE: PortalException vs. SystemException

Expert Bejegyzések: 492 Csatlakozás dátuma: 2012.09.17. Legújabb bejegyzések

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.