Table of Contents

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 string

The additional message of the error.

Methods

ThrowIfNotConfigured(Type?)

Throw if not configured.

public static void ThrowIfNotConfigured(Type? resolver)

Parameters

resolver Type

The resolver value to check.

Exceptions

MongoDatabaseNameResolverNotConfigured

Thrown if the resolver is not configured.