C# Класс CK.Core.CKException

Наследование: System.Exception
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
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