Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 3441

How do I get MESSAGE value from IQ procedure?

$
0
0

I'm currently calling a procedure from my java application. The procedure contains the following piece of code:

 

     IF v_throw_exc_flag > 0 THEN      

          MESSAGE 'One or more of the locations exceed the area limit of 10000km2', SQLSTATE, 'SCI.ProcName' to client;

          SIGNAL CUSTOM_EXCEPTION;        

    END IF;


Could someone give me a hint to get the MESSAGE value in my catch(SQLException e) {} piece of code?

 

I'm currently getting

com.sybase.jdbc4.jdbc.SybSQLException: SQL Anywhere Error -156: Invalid expression near 'CUSTOM_EXCEPTION'

 

Regards,

 

Vinícius.


Viewing all articles
Browse latest Browse all 3441

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>