Page 1 of 1

DevArt Network Exception Handle

Posted: Thu 05 Nov 2015 14:18
by ercaguysal
Hi,
I'm using oracle database and write some code.
I wanna split network error and sql error.
How can i make this ?

Actually i wanna make some code like below
try
{
...
}
catch(OracleException ex)
{
handle some oracle errors
}
catch(NetworkErrors ex)
{
handle some network errors
}
And im using C#

Re: DevArt Network Exception Handle

Posted: Thu 05 Nov 2015 19:29
by Shalex
Your code looks to be OK. Please specify the exact problems you have encountered with exception handling using your approach.