C# 클래스 CK.Core.CKException

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

공개 메소드들

메소드 설명
CKException ( CKExceptionData data ) : System

Initializes a new CKException with an ExceptionData. The message of this exception is the CKExceptionData.Message. Use the static CreateFrom to handle null data (a null CKException will be returned).

CKException ( Exception innerException, string messageFormat ) : System

Initializes a new CKException with an Exception.InnerException.

CKException ( string message ) : System

Initializes a new CKException.

CKException ( string message, Exception innerException ) : System

Initializes a new CKException.

CreateFrom ( CKExceptionData data ) : CKException

Creates a CKException from a CKExceptionData. This method returns null when data is null. This is the symmetric of CKExceptionData.CreateFrom.

EnsureExceptionData ( ) : CKExceptionData

If ExceptionData is null, this method creates the CKExceptionData with the details from this exception.

비공개 메소드들

메소드 설명
DoSerialize ( object sender, System.Runtime.Serialization.SafeSerializationEventArgs e ) : void

메소드 상세

CKException() 공개 메소드

Initializes a new CKException with an ExceptionData. The message of this exception is the CKExceptionData.Message. Use the static CreateFrom to handle null data (a null CKException will be returned).
public CKException ( CKExceptionData data ) : System
data CKExceptionData The exception data. Must not be null.
리턴 System

CKException() 공개 메소드

Initializes a new CKException with an Exception.InnerException.
public CKException ( Exception innerException, string messageFormat ) : System
innerException System.Exception Exception that caused this one.
messageFormat string Format string with optional placeholders.
리턴 System

CKException() 공개 메소드

Initializes a new CKException.
public CKException ( string message ) : System
message string Simple message.
리턴 System

CKException() 공개 메소드

Initializes a new CKException.
public CKException ( string message, Exception innerException ) : System
message string Simple message.
innerException System.Exception Exception that caused this one.
리턴 System

CreateFrom() 정적인 공개 메소드

Creates a CKException from a CKExceptionData. This method returns null when data is null. This is the symmetric of CKExceptionData.CreateFrom.
static public CreateFrom ( CKExceptionData data ) : CKException
data CKExceptionData Data of an exception for which a wrapper must be created. Can be null: null is returned.
리턴 CKException

EnsureExceptionData() 공개 메소드

If ExceptionData is null, this method creates the CKExceptionData with the details from this exception.
public EnsureExceptionData ( ) : CKExceptionData
리턴 CKExceptionData