Forum Stats

  • 3,826,362 Users
  • 2,260,636 Discussions


Inform User of Validation Error

ChristianM0147 Member Posts: 35 Red Ribbon
edited Jun 16, 2022 5:16AM in JDeveloper and ADF


I am currently working with JDeveloper Version

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.