PowerBuilder · Exception

CORBAUserException System Exception

What does CORBAUserException System Exception mean in PowerBuilder?

Thrown when a CORBA client component calls an EAServer object and the server-side component raises its own user-defined CORBA exception rather than a system-level one. Unlike CORBASystemException, this is a checked exception descending from Exception, so the compiler requires it to be caught or declared wherever it can be thrown.

CORBAUserException System ExceptionPowerBuilder Classic · Appeon PowerBuilder

Condition

Thrown when a CORBA client component calls an EAServer object and the server-side component raises its own user-defined CORBA exception rather than a system-level one. Unlike CORBASystemException, this is a checked exception descending from Exception, so the compiler requires it to be caught or declared wherever it can be thrown.

Fix

Declare CORBAUserException in the calling routine's THROWS clause or wrap the remote call in TRY/CATCH, and treat it as an application-level failure signal from the component rather than an infrastructure fault. Read GetMessage() for the business-rule detail the server component attached to it.

Related exception