C# Класс Aspectacular.ExceptionExtensions

Показать файл Открыть проект

Открытые методы

Метод Описание
AllExceptions ( this ex ) : IEnumerable

Returns all exceptions in the chain starting from the innermost.

AllExceptionsBack ( this ex ) : IEnumerable

Returns all exceptions in the chain starting from the outermost.

Consolidate ( this ex, string separator, bool innerFirst, string>.Func converter ) : string

Joins text information from the chain of exceptions including inner ones.

ConsolidatedInfo ( this ex, string separator = null, bool innerFirst = true ) : string

Returns exception information (messages + stack traces) in the exception chain (main + inner exceptions), starting from the innermost one.

ConsolidatedMessage ( this ex, string separator = null, bool innerFirst = true ) : string

Returns all messages in the exception chain (main + inner exceptions), starting from the innermost one.

ConsolidatedStack ( this ex, string separator = null, bool innerFirst = true ) : string

Returns all stack traces in the exception chain (main + inner exceptions), starting from the innermost one.

FullInfo ( this ex ) : string

Returns string containing exception type, message and stack trace. No inner exception information included.

ToSerializable ( this ex ) : ExceptionDto

Returns Exception-like object that can serialized to XML, JSON, etc.

TypeAndMessage ( this ex ) : string

Returns string with the information of exception type and message.

Описание методов

AllExceptions() публичный статический Метод

Returns all exceptions in the chain starting from the innermost.
public static AllExceptions ( this ex ) : IEnumerable
ex this
Результат IEnumerable

AllExceptionsBack() публичный статический Метод

Returns all exceptions in the chain starting from the outermost.
public static AllExceptionsBack ( this ex ) : IEnumerable
ex this
Результат IEnumerable

Consolidate() публичный статический Метод

Joins text information from the chain of exceptions including inner ones.
public static Consolidate ( this ex, string separator, bool innerFirst, string>.Func converter ) : string
ex this
separator string
innerFirst bool True to put innermost exception on top, false for outermost.
converter string>.Func
Результат string

ConsolidatedInfo() публичный статический Метод

Returns exception information (messages + stack traces) in the exception chain (main + inner exceptions), starting from the innermost one.
public static ConsolidatedInfo ( this ex, string separator = null, bool innerFirst = true ) : string
ex this
separator string
innerFirst bool True to put innermost exception on top, false for outermost.
Результат string

ConsolidatedMessage() публичный статический Метод

Returns all messages in the exception chain (main + inner exceptions), starting from the innermost one.
public static ConsolidatedMessage ( this ex, string separator = null, bool innerFirst = true ) : string
ex this
separator string
innerFirst bool True to put innermost exception on top, false for outermost.
Результат string

ConsolidatedStack() публичный статический Метод

Returns all stack traces in the exception chain (main + inner exceptions), starting from the innermost one.
public static ConsolidatedStack ( this ex, string separator = null, bool innerFirst = true ) : string
ex this
separator string
innerFirst bool True to put innermost exception on top, false for outermost.
Результат string

FullInfo() публичный статический Метод

Returns string containing exception type, message and stack trace. No inner exception information included.
public static FullInfo ( this ex ) : string
ex this
Результат string

ToSerializable() публичный статический Метод

Returns Exception-like object that can serialized to XML, JSON, etc.
public static ToSerializable ( this ex ) : ExceptionDto
ex this
Результат ExceptionDto

TypeAndMessage() публичный статический Метод

Returns string with the information of exception type and message.
public static TypeAndMessage ( this ex ) : string
ex this
Результат string