Description
Syntax
try
{
// Write your code hare
}
catch (Exception ex)
{
throw ex;
}
Example
More Info
Syntax try
{
// Write your code hare
}
catch (Exception ex)
{
throw new FaultException(ex.Message);
}
Example The above screen says clearly that a try was given to divide by zero. Here client can easily understand what the error is.