jdbc 捕捉sql server raiseerror 方法抛出的异常

 The problem was related to the severity I was choosing when calling raiserror(). I was passing in 10 for this argument as I had seen an example that put 10 there, but in order for the error text to get passed to the SQLException the severity must be 11 or higher.

你可能感兴趣的:(SQL Server)