Class MongoDatabaseNameResolverNotConfigured
- Namespace
- Cratis.Applications.MongoDB
- Assembly
- Cratis.Applications.MongoDB.dll
The exception that is thrown when the IMongoServerResolver is missing.
public class MongoDatabaseNameResolverNotConfigured : Exception, ISerializable
- Inheritance
-
MongoDatabaseNameResolverNotConfigured
- Implements
- Inherited Members
Constructors
MongoDatabaseNameResolverNotConfigured(string)
The exception that is thrown when the IMongoServerResolver is missing.
public MongoDatabaseNameResolverNotConfigured(string message)
Parameters
message
stringThe additional message of the error.
Methods
ThrowIfNotConfigured(Type?)
Throw if not configured.
public static void ThrowIfNotConfigured(Type? resolver)
Parameters
resolver
TypeThe resolver value to check.
Exceptions
- MongoDatabaseNameResolverNotConfigured
Thrown if the resolver is not configured.