.NET: How to convert Exception to string?

前端 未结 10 780
隐瞒了意图╮
隐瞒了意图╮ 2021-01-30 10:47

When an exception is thrown (while debugging in the IDE), i have the opportunity to view details of the exception:

10条回答
  •  自闭症患者
    2021-01-30 10:53

    You will probably have to manually construct that string by concatenating the various fields you are interested in.

提交回复
热议问题