Can the ErrorCode & SQLState combination be considered a unique ID for
some exception?
In general, considering ErrorCode & SQLState combination to be a unique ID
for a specific exception, is it a safe thing to base your code logic on?
Also to be more specific, Does DataDirect follow such a thing?
Also for an exact case which what I need, My code is generation the
following Exception:
[SQLServer JDBC Driver]Changing the default holdability is not
supported... and the following:
System.out.println(">e.getErrorCode: " + e.getErrorCode());
System.out.println(">e.getSQLState: " + e.getSQLState());
is returing:
>e.getErrorCode: 0
>e.getSQLStat: hy000
So would it be safe to assume that if I check for 0 && hy00 then I'm
filtering only the exception I mentioned earlier?
No comments:
Post a Comment