例外クラスは非常に多くのプロパティを提供し、発生した例外に関するより意味のある完全な詳細を提供します。
InnerException-->Gets Exception instance that caused the current exception
。
Message-->Gets a message that describes the current exception.
Source--> Gets or sets the name of application or object that causes the error.
StackTrace -->Gets a string representation of immediate frames on the call stack.
Public property -->TargetSite Gets the method that throws the current exception.
しかし、意味がない場合もあります。
at Microsoft.SharePoint.SPList.GetItemById(String strId, Int32 id, String strRootFolder, Boolean cacheRowsetAndId, String strViewFields, Boolean bDatesInUtc)
at Microsoft.SharePoint.SPList.GetItemById(Int32 id)
at JafraWFTest.JafraCustomWFActivity.<Execute>b__0()
この場合、例外の原因となっている行番号やクラス名はわかりません。
したがって、例外の原因となるクラス名を見つける方法。