Table of Contents

Class ContextNotFoundException

Namespace
Opossum.Exceptions
Assembly
Opossum.dll

Exception thrown when attempting to access a bounded context that doesn't exist or hasn't been configured

public class ContextNotFoundException : EventStoreException, ISerializable
Inheritance
ContextNotFoundException
Implements
Inherited Members

Constructors

ContextNotFoundException()

Initializes a new instance of the ContextNotFoundException class

public ContextNotFoundException()

ContextNotFoundException(string)

Initializes a new instance of the ContextNotFoundException class with a specified error message

public ContextNotFoundException(string message)

Parameters

message string

The message that describes the error

ContextNotFoundException(string, Exception)

Initializes a new instance of the ContextNotFoundException class with a specified error message and inner exception

public ContextNotFoundException(string message, Exception innerException)

Parameters

message string

The message that describes the error

innerException Exception

The exception that is the cause of the current exception

ContextNotFoundException(string, string)

Initializes a new instance of the ContextNotFoundException class with a specified error message and context name

public ContextNotFoundException(string message, string contextName)

Parameters

message string

The message that describes the error

contextName string

The name of the context that was not found

ContextNotFoundException(string, string, Exception)

Initializes a new instance of the ContextNotFoundException class with a specified error message, context name, and inner exception

public ContextNotFoundException(string message, string contextName, Exception innerException)

Parameters

message string

The message that describes the error

contextName string

The name of the context that was not found

innerException Exception

The exception that is the cause of the current exception

Properties

ContextName

Gets the name of the context that was not found

public string? ContextName { get; }

Property Value

string