C# 클래스 CK.Core.CKExceptionData

파일 보기 프로젝트 열기: Invenietis/ck-core 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
CurrentStreamVersion int

공개 메소드들

메소드 설명
CKExceptionData ( CKBinaryReader r, bool streamIsCRLF ) : System

Initializes a new CKExceptionData from a CKBinaryReader. See Write(CKBinaryWriter,bool).

CKExceptionData ( CKBinaryReader r, bool streamIsCRLF, int version ) : System

Initializes a new CKExceptionData from a CKBinaryReader with a known version. See Write(CKBinaryWriter,bool).

CKExceptionData ( string message, string exceptionTypeName, string exceptionTypeAssemblyQualifiedName, string stackTrace, CKExceptionData innerException, string fileName, string detailedInfo, CKExceptionData loaderExceptions, CKExceptionData aggregatedExceptions ) : System

Initializes a new CKExceptionData with all its fields. Use the factory method CreateFrom to create a data from any exception.

CreateFrom ( Exception ex ) : CKExceptionData

Creates a CKExceptionData from any Exception.

ToString ( ) : string

Overridden to return a detailed text. This string is cached once built.

ToStringBuilder ( StringBuilder b, string prefix ) : void

Writes the exception data as a readable block of text into a StringBuilder.

ToTextWriter ( TextWriter w, string prefix ) : void

Writes the exception data as a readable block of text into a TextWriter.

Write ( CKBinaryWriter w, bool writeVersion = true ) : void

Writes this exception data into a BinaryWriter.

비공개 메소드들

메소드 설명
AppendField ( StringBuilder b, string prefix, string label, string text ) : StringBuilder
WriteWithoutVersion ( CKBinaryWriter w ) : void

메소드 상세

CKExceptionData() 공개 메소드

Initializes a new CKExceptionData from a CKBinaryReader. See Write(CKBinaryWriter,bool).
public CKExceptionData ( CKBinaryReader r, bool streamIsCRLF ) : System
r CKBinaryReader The reader to read from.
streamIsCRLF bool Whether the strings have CRLF or LF for end-of-lines.
리턴 System

CKExceptionData() 공개 메소드

Initializes a new CKExceptionData from a CKBinaryReader with a known version. See Write(CKBinaryWriter,bool).
public CKExceptionData ( CKBinaryReader r, bool streamIsCRLF, int version ) : System
r CKBinaryReader The reader to read from.
streamIsCRLF bool Whether the strings have CRLF or LF for end-of-lines.
version int Known version.
리턴 System

CKExceptionData() 공개 메소드

Initializes a new CKExceptionData with all its fields. Use the factory method CreateFrom to create a data from any exception.
public CKExceptionData ( string message, string exceptionTypeName, string exceptionTypeAssemblyQualifiedName, string stackTrace, CKExceptionData innerException, string fileName, string detailedInfo, CKExceptionData loaderExceptions, CKExceptionData aggregatedExceptions ) : System
message string Message of the exception. Must not be null.
exceptionTypeName string Type name of the exception (no namespace nor assembly). Must not be null nor empty..
exceptionTypeAssemblyQualifiedName string Full type name of the exception. Must not be null nor empty.
stackTrace string Stack trace. Can be null.
innerException CKExceptionData Inner exception. If is not null, it must be the same as the first aggregated exceptions.
fileName string File name related to the exception (if it makes sense). Can be null.
detailedInfo string More detailed information if any.
loaderExceptions CKExceptionData Loader exceptions. .
aggregatedExceptions CKExceptionData Aggregated exceptions can be null. Otherwise, it must contain at least one exception.
리턴 System

CreateFrom() 정적인 공개 메소드

Creates a CKExceptionData from any Exception.
static public CreateFrom ( Exception ex ) : CKExceptionData
ex System.Exception Exception for which data must be created. Can be null: null is returned.
리턴 CKExceptionData

ToString() 공개 메소드

Overridden to return a detailed text. This string is cached once built.
public ToString ( ) : string
리턴 string

ToStringBuilder() 공개 메소드

Writes the exception data as a readable block of text into a StringBuilder.
public ToStringBuilder ( StringBuilder b, string prefix ) : void
b StringBuilder The StringBuilder to write to.
prefix string Prefix that will appear at the start of each line.
리턴 void

ToTextWriter() 공개 메소드

Writes the exception data as a readable block of text into a TextWriter.
public ToTextWriter ( TextWriter w, string prefix ) : void
w System.IO.TextWriter The TextWriter to write to.
prefix string Prefix that will appear at the start of each line.
리턴 void

Write() 공개 메소드

Writes this exception data into a BinaryWriter.
public Write ( CKBinaryWriter w, bool writeVersion = true ) : void
w CKBinaryWriter The writer to use. Can not be null.
writeVersion bool False to not write the .
리턴 void

프로퍼티 상세

CurrentStreamVersion 공개적으로 정적으로 프로퍼티

The current stream version.
public static int CurrentStreamVersion
리턴 int