How come OracleException for all Exceptions?
Posted: Mon 26 Mar 2007 11:47
Hi -just a quick query/suggestion.
How come nearly all Exceptions that come back from Oracle are OracleExceptions, and not mapped to their own type? Obviously you can tell what sort of exception it is using the Code, but wouldnt it be better if you mapped each code to a specific Exception?
That way you could catch specific exceptions.
Just a thought
Thanks
Kevin
How come nearly all Exceptions that come back from Oracle are OracleExceptions, and not mapped to their own type? Obviously you can tell what sort of exception it is using the Code, but wouldnt it be better if you mapped each code to a specific Exception?
That way you could catch specific exceptions.
Just a thought
Thanks
Kevin