Skip to main content

ExchangeException

Namespace: Meshmakers.Octo.Runtime.Contracts.Exchange

Represents an exception that occurs during exchange operations.

public class ExchangeException : PersistenceException, ISerializable

Inheritance ObjectExceptionPersistenceExceptionExchangeException
Implements ISerializable

Properties

TargetSite

public MethodBase TargetSite { get; }

Property Value

MethodBase

Message

public string Message { get; }

Property Value

String

Data

public IDictionary Data { get; }

Property Value

IDictionary

InnerException

public Exception InnerException { get; }

Property Value

Exception

public string HelpLink { get; set; }

Property Value

String

Source

public string Source { get; set; }

Property Value

String

HResult

public int HResult { get; set; }

Property Value

Int32

StackTrace

public string StackTrace { get; }

Property Value

String

Constructors

ExchangeException()

Initializes a new instance of the ExchangeException class with a default message.

public ExchangeException()

ExchangeException(String)

Initializes a new instance of the ExchangeException class with a specified error message.

public ExchangeException(string message)

Parameters

message String
Message that describes the error.

ExchangeException(String, Exception)

Initializes a new instance of the ExchangeException class with a specified error message and a reference to the inner exception that is the cause of this exception.

public ExchangeException(string message, Exception inner)

Parameters

message String
Message that describes the error.

inner Exception
Inner exception that is the cause of this exception.

Methods

AttributeNotFound<TKey>(CkId<CkAttributeId>, String, CkId<TKey>)

internal static Exception AttributeNotFound<TKey>(CkId<CkAttributeId> modelAttributeId, string elementType, CkId<TKey> ckId)

Type Parameters

TKey

Parameters

modelAttributeId CkId<CkAttributeId>

elementType String

ckId CkId<TKey>

Returns

Exception

RecordNotFound<TKey>(CkId<CkRecordId>, String, CkId<TKey>)

internal static Exception RecordNotFound<TKey>(CkId<CkRecordId> ckRecordId, string elementType, CkId<TKey> ckId)

Type Parameters

TKey

Parameters

ckRecordId CkId<CkRecordId>

elementType String

ckId CkId<TKey>

Returns

Exception

CkEnumIdNotDefined(CkTypeAttributeGraph)

internal static Exception CkEnumIdNotDefined(CkTypeAttributeGraph ckTypeAttributeGraph)

Parameters

ckTypeAttributeGraph CkTypeAttributeGraph

Returns

Exception

CkEnumIdNotFound(CkTypeAttributeGraph)

internal static Exception CkEnumIdNotFound(CkTypeAttributeGraph typeAttributeGraph)

Parameters

typeAttributeGraph CkTypeAttributeGraph

Returns

Exception

CkEnumWithOutOfRange(CkTypeAttributeGraph, Object)

internal static Exception CkEnumWithOutOfRange(CkTypeAttributeGraph typeAttributeGraph, object value)

Parameters

typeAttributeGraph CkTypeAttributeGraph

value Object

Returns

Exception

BulkImportError(Exception)

internal static Exception BulkImportError(Exception innerException)

Parameters

innerException Exception

Returns

Exception

CkModelsMissing(String, ICollection<CkModelId>)

internal static Exception CkModelsMissing(string tenantId, ICollection<CkModelId> ckModelIds)

Parameters

tenantId String

ckModelIds ICollection<CkModelId>

Returns

Exception