aspose file tools
The moose likes Java in General and the fly likes User Defined SQLException... Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » Java in General
Reply Bookmark "User Defined SQLException..." Watch "User Defined SQLException..." New topic
Author

User Defined SQLException...

Ankur Sharma
Ranch Hand

Joined: Dec 27, 2005
Posts: 1234
Hi,

My problem description is to generate a User Defined SQLException.
Here is a look

Let's suppose at any time in Stored Procedure I need to raise a user defined Exception and then in catch block of Stored Procedure we are catching it and handling it, now if we want to propagate the same exception with same message to the JAVA side, how can we do it.

Because whenever we try to raise the same exception to java side from Stored Procedure it is getting automatically packed in SQLException.


Now is there any way out, through which we can make our own exception and can directly catch it from Stored Procedure in JAVA without using SQLException. And how we need to map that exception with Oracle's Stored Procedure.


The Best way to predict your future is to create it
Ankur Sharma
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

Moving to JDBC forum...


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: User Defined SQLException...
 
Similar Threads
Partial Flushing of response
Raise an Exception in PL/SQL but not got @ JAVA End
How to capture the exception in oracle trigger from Java client?
User Defined SQLException...
java oracle simultaneous transaction problem