Client applications, whether running local or remote (VisiBroker or Oracle8i platforms), can trap Java exceptions thrown by Business Components for Java running in the middle-tier. Business logic can catch exceptions as needed, as in the following example.
try {
...
// This might cause an error.
empRow.lock();
...
} catch ( LockFailureException lfe )
{
// Handle the error here.
}
When an exception is passed to a thin client, framework code calls getLocalizedMessage(Locale) for the client's locale before passing the exception over the wire.