Quantcast
Channel: SCN: Message List - SAP SQL Anywhere
Viewing all articles
Browse latest Browse all 2182

Java exception handling best practice

$
0
0

Now that I have my java class running (see prior post), what is the best way to communicate an exception back to the caller (in this case a PowerBuilder app)?

 

The java method I'm calling throws either IOException or Exception depending on what its nested method calls return. Is it ok for these exceptions to be unhandled and return to the caller as such, with sqlcode set to -1 and sqlerrtext set to the exception's message?


Viewing all articles
Browse latest Browse all 2182

Trending Articles