Priority Exception in try catch C# -


i have code:

try {         var bookingresult = externalservice.confirm(masterlocator, itemlocator);     } catch (availabilityexception) {         confirmingservice.saveerrortype(itemlocator.id,(int)errortype.availability);         throw; } catch {         confirmingservice.markitem(confirmation.id);         throw; } 

when execute program, know exception availability exception because forced service give me availability exception, enters empty catch.

what doing wrong? or why enter in catch empty?

the problem service sent me 2 different availabilityexception.

now catch different availabilityexception.

very useful comments


Comments