Метод | Описание | |
---|---|---|
AppendDataList ( IDictionary dict, StringBuilder sb, string linePrefix, string keyValueSeparator, string newLine ) : StringBuilder | ||
DataList ( this ex ) : string |
Converts
|
|
DataList ( this ex, string linePrefix, string keyValueSeparator, string newLine ) : string |
Converts
|
|
Description ( this ex ) : string | ||
Description ( this ex, bool addStackTrace, string lineSeparator = "\n\n" ) : string |
Gets a description of the exception in the form "{ex.Message} ({ex.GetType().Name})". If the exception has InnerExceptions, these are printed afterward in the form "Inner exception: {ex.Message} ({ex.GetType().Name})" and separated from the outer exception by "\n\n" (or a string of your choosing).
|
|
DescriptionAndStackTrace ( this ex ) : string | Adds a stack trace. | |
ExceptionMessageAndType ( this ex ) : string |
Returns a string of the form "{ex.Message} ({ex.GetType().Name})".
|
|
InnermostException ( this ex ) : |
Gets the innermost InnerException, or
|
|
PreserveStackTrace ( this exception ) : void |
Calls an internal method of Exception that records an exception's stack trace so that the stack trace does not change if the exception is rethrown (e.g. on another thread). |
|
ToDetailedString ( this ex ) : string |
Returns a string containing the exception type, message, Data pairs (if any) and stack strace, followed by the type, message and stack strace of inner exceptions, if any. If |
|
ToDetailedString ( this ex, int maxInnerExceptions ) : string |
public static AppendDataList ( IDictionary dict, StringBuilder sb, string linePrefix, string keyValueSeparator, string newLine ) : StringBuilder | ||
dict | IDictionary | |
sb | StringBuilder | |
linePrefix | string | |
keyValueSeparator | string | |
newLine | string | |
Результат | StringBuilder |
public static DataList ( this ex ) : string | ||
ex | this | |
Результат | string |
public static DataList ( this ex, string linePrefix, string keyValueSeparator, string newLine ) : string | ||
ex | this | |
linePrefix | string | |
keyValueSeparator | string | |
newLine | string | |
Результат | string |
public static Description ( this ex ) : string | ||
ex | this | |
Результат | string |
public static Description ( this ex, bool addStackTrace, string lineSeparator = "\n\n" ) : string | ||
ex | this | |
addStackTrace | bool | If true, the stack trace of the outermost /// exception is added to the end of the message (not the innermost /// exception, because the inner stack trace gets truncated. TODO: /// investigate whether the full stack trace can be reconstructed). |
lineSeparator | string | Separator between different exceptions and /// before the stack trace. |
Результат | string |
public static DescriptionAndStackTrace ( this ex ) : string | ||
ex | this | |
Результат | string |
public static ExceptionMessageAndType ( this ex ) : string | ||
ex | this | |
Результат | string |
public static InnermostException ( this ex ) : |
||
ex | this | |
Результат |
public static PreserveStackTrace ( this exception ) : void | ||
exception | this | |
Результат | void |
public static ToDetailedString ( this ex ) : string | ||
ex | this | |
Результат | string |
public static ToDetailedString ( this ex, int maxInnerExceptions ) : string | ||
ex | this | |
maxInnerExceptions | int | |
Результат | string |