C# 클래스 Aspectacular.ExceptionExtensions

파일 보기 프로젝트 열기: vgribok/Aspectacular

공개 메소드들

메소드 설명
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