Class ExceptionExtensions
Extension methods to get complete exception details and to deal with exceptions easily.
Inheritance
System.Object
ExceptionExtensions
Namespace: System
Assembly: PnP.Framework.dll
Syntax
public static class ExceptionExtensions : object
Methods
ToDetailedString(Exception)
Returns the detailed exception
Declaration
public static string ToDetailedString(this Exception exception)
Parameters
Exception
exception
Exception object |
Returns
System.String
Returns exception as a string |
ToDetailedString(Exception, ClientRuntimeContext)
Returns exception for the given ClientRunTimeContext
Declaration
public static string ToDetailedString(this Exception exception, ClientRuntimeContext cc)
Parameters
Exception
exception
Exception object |
ClientRuntimeContext
cc
ClientRuntimeContext object |
Returns
System.String
Returns exception as a string |
ToDetailedString(Exception, ClientRuntimeContext, ExceptionOptions)
Returns exception based on ClientRunTimeContext and ExceptionOptions objects
Declaration
public static string ToDetailedString(this Exception exception, ClientRuntimeContext cc, ExceptionOptions options)
Parameters
Exception
exception
Exception object |
ClientRuntimeContext
cc
ClientRuntimeContext object |
ExceptionOptions
options
ExceptionOptions object |
Returns
System.String
Returns exception as a string |
ToDetailedString(Exception, ExceptionOptions)
Returns Exception based on ExceptionOptions object
Declaration
public static string ToDetailedString(this Exception exception, ExceptionOptions options)
Parameters
Exception
exception
Exception object |
ExceptionOptions
options
ExceptionOptions object |
Returns
System.String
Returns exception as a string |