Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Inform User of Validation Error

ChristianM0147Jun 16 2022 — edited Jun 16 2022

Hello,
I am currently working with JDeveloper Version 12.2.1.4.0.
So i created a Method in the AppModule that calls a DB procedure with an In and Output parameter. The Input parameter needs to get validated on some specific criterias depending on the database so i decided to implement the validation inside the procedure and return the output parameter with value 1 (validation failed) or 0.
Back in my AppModule method i read the output parameter and want to inform the User if the output equals 1. Could you please tell my what is the best way to inform the User?
Currently i throw a ValidationException if the output parameter equals 1 and it does what i want but i am uncertain if i should do it that way.

Comments

Post Details

Added on Jun 16 2022
2 comments
49 views