Programmatically throwing validation exceptions in business components

Sometimes you may want to programmatically throw validation exceptions from custom business service methods if certain business conditions are not met in the middle of a process flow. In this section, you will learn to use appropriate exception classes for programmatically throwing validation exceptions with localized messages from business component classes.

In this section, we will start with the localization of validation messages, then we will move forward to discuss the validation class hierarchy, and finally we will see APIs from throwing various validation exceptions.

Localizing validation error messages

ADF allows you to localize messages that are displayed when a validation ...

Get Oracle ADF Real World Developer's Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.