c# - Can't access Exception property -
i catching argumentexception
, of want specific property. when put breakpoint on code argumentexception
caught, see has errormessage
property:
but trying access gives result:
what's going on here?
the problem in first screenshot display httpwebresponse
or similar object, while in second screenshot working actual exception.
exceptions have message
property , not errormessage
. change second code ex.message
, work.
Comments
Post a Comment