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
messagestringThe 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
messagestringThe message that describes the error
innerExceptionExceptionThe 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
messagestringThe message that describes the error
contextNamestringThe 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
messagestringThe message that describes the error
contextNamestringThe name of the context that was not found
innerExceptionExceptionThe 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; }