Inner Exception - の表示

try-catchのcatch部で
innerexceptionの情報をテキストに保存したいと思います。

左辺:変数 = 右辺:変数.innerexception

としましたが右辺でエラーとなります。

変数はstringです。

どのように対応すべきかご教示お願いします。

こんにちは

InnerExceptionは下図の通りExceptionを返しますのでstringでは受けることができません
Exceptionとして受けてみてください。

img20211208-a2

1 Like

@Quinone

You can use it like below.

image

Thank you.

2 Likes