Class ExceptionExtensions
Extension methods for System.Exception.
Inheritance
System.Object
ExceptionExtensions
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Phoenix
Assembly: Phoenix.Core.dll
Syntax
public static class ExceptionExtensions
Methods
View SourceFormatLoaderExceptions(Exception)
Formats the exception as a string, including special formatting for reflection load errors.
Declaration
public static string FormatLoaderExceptions(this Exception e)
Parameters
Type | Name | Description |
---|---|---|
System.Exception | e | The exception, which may be a System.Reflection.ReflectionTypeLoadException. |
Returns
Type | Description |
---|---|
System.String | The formatted message. |
FormatMessageAndStackTrace(Exception, Boolean)
Formats the exception as a string, including the stack trace and any inner exceptions.
Declaration
public static string FormatMessageAndStackTrace(this Exception e, bool logInner)
Parameters
Type | Name | Description |
---|---|---|
System.Exception | e | The exception. |
System.Boolean | logInner |
Returns
Type | Description |
---|---|
System.String | The formatted message. |