c# - Can't access Exception property -


i catching argumentexception, of want specific property. when put breakpoint on code argumentexception caught, see has errormessage property:

enter image description here

but trying access gives result:

enter image description here

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

Popular posts from this blog

javascript - Feed FileReader from server side files -

How to Change swipe Tab Title color in java Android -

Using globs in Perl replace one liner in TCL script -