Class MongoAuthenticationException
Represents a MongoDB authentication exception.
[Serializable]
public class MongoAuthenticationException : MongoConnectionException, ISerializable
- Inheritance
-
MongoAuthenticationException
- Implements
- Inherited Members
Constructors
MongoAuthenticationException(ConnectionId, string)
Initializes a new instance of the MongoAuthenticationException class.
public MongoAuthenticationException(ConnectionId connectionId, string message)
Parameters
connectionIdConnectionIdThe connection identifier.
messagestringThe error message.
MongoAuthenticationException(ConnectionId, string, Exception)
Initializes a new instance of the MongoAuthenticationException class.
public MongoAuthenticationException(ConnectionId connectionId, string message, Exception innerException)
Parameters
connectionIdConnectionIdThe connection identifier.
messagestringThe error message.
innerExceptionExceptionThe inner exception.
MongoAuthenticationException(SerializationInfo, StreamingContext)
Initializes a new instance of the MongoAuthenticationException class.
public MongoAuthenticationException(SerializationInfo info, StreamingContext context)
Parameters
infoSerializationInfoThe SerializationInfo.
contextStreamingContextThe StreamingContext.
Properties
IsNetworkException
Determines whether the exception is network error or no.
public override bool IsNetworkException { get; }