C# 클래스 Tickster.Utils.ExceptionSignatureBuilder

Generates exception signatures useful for grouping exceptions together. The signatures are also useful when you wan't to give users an identifier or "error-code" to use when they contact customer service. Use the ToString method to produce small friendly signatures (example: 7815696e). Produces upper case codes by default (controlled by the UseUpperCaseSignature property).
상속: IDisposable
파일 보기 프로젝트 열기: tickster/Tickster.Utilities

Private Properties

프로퍼티 타입 설명
AppendErrorCode void
AppendExceptionMessage void
AppendMethodInfo string
AppendPreprocessedMessage void
AppendStackTrace void
AssertNotDisposed void
GetParameterStrings string[]
RemoveTextWithinStopChars string

공개 메소드들

메소드 설명
AddException ( Exception exception ) : void

Add one exception to the builder and traverse all its inner exceptions

AddException ( Exception exception, bool traverseInnerException ) : void

Add one exception to the builder optionally traversing all of its inner exceptions

Clear ( ) : void

Removes all signature data from the builder

Dispose ( ) : void
ExceptionSignatureBuilder ( ) : System

Initializes a new instance of the ExceptionSignatureBuilder class.

GetSignatureBytes ( ) : byte[]

Returns the signature hash (128bit md5)

ToSignatureHashDigest ( ) : string

Returns a 32 characters long hex digest of the signature bytes

ToSignatureString ( ) : string

Computes a 8-character long exception signature taken from the beginning of the exception signature hash digest (ToSignatureHashDigest)

ToString ( ) : string

Computes a 8-character long exception signature taken from the beginning of the exception signature hash digest (ToSignatureHashDigest)

비공개 메소드들

메소드 설명
AppendErrorCode ( int errorCode ) : void
AppendExceptionMessage ( Exception exception ) : void
AppendMethodInfo ( MethodBase mb ) : string
AppendPreprocessedMessage ( StringBuilder sb, string message ) : void
AppendStackTrace ( Exception exception ) : void
AssertNotDisposed ( ) : void
GetParameterStrings ( ParameterInfo parameterInfo ) : string[]
RemoveTextWithinStopChars ( string value ) : string

메소드 상세

AddException() 공개 메소드

Add one exception to the builder and traverse all its inner exceptions
public AddException ( Exception exception ) : void
exception System.Exception The exception to add
리턴 void

AddException() 공개 메소드

Add one exception to the builder optionally traversing all of its inner exceptions
public AddException ( Exception exception, bool traverseInnerException ) : void
exception System.Exception The exception to add
traverseInnerException bool Whether or not to include all inner exceptions in the signature
리턴 void

Clear() 공개 메소드

Removes all signature data from the builder
public Clear ( ) : void
리턴 void

Dispose() 공개 메소드

public Dispose ( ) : void
리턴 void

ExceptionSignatureBuilder() 공개 메소드

Initializes a new instance of the ExceptionSignatureBuilder class.
public ExceptionSignatureBuilder ( ) : System
리턴 System

GetSignatureBytes() 공개 메소드

Returns the signature hash (128bit md5)
public GetSignatureBytes ( ) : byte[]
리턴 byte[]

ToSignatureHashDigest() 공개 메소드

Returns a 32 characters long hex digest of the signature bytes
public ToSignatureHashDigest ( ) : string
리턴 string

ToSignatureString() 공개 메소드

Computes a 8-character long exception signature taken from the beginning of the exception signature hash digest (ToSignatureHashDigest)
public ToSignatureString ( ) : string
리턴 string

ToString() 공개 메소드

Computes a 8-character long exception signature taken from the beginning of the exception signature hash digest (ToSignatureHashDigest)
public ToString ( ) : string
리턴 string