Hi,
I thought system.Exception catches everything
So i had the following
Catch(Exception:Error)
{
Here i return what is saved in sysInfoLog
}
Catch(ex) //this is system.Eception
{
Info(ex.Message)
}
Catch{ i also return what is inside sysInfoLog}
Now what happened is, during inserting into logisiticsPostalAddressEntity.. An error occured that says countryRegionId should be filled
If there was no catch for the system exception, then the general catch will return this missage for me.(not sure why this wasn't catched by the error catch??? )
However when i added the system.Exception catch, the debug entered this catch. However it returned nothing.
Does that mean that inside the ex catch, i should check if ex.Message==null then check the sysInfolog? But why it returned nothing?