C# Class MongoDB.Driver.Util.ErrorTranslator

Translates an error returned from Mongo into the proper exception.
Afficher le fichier Open project: sdether/mongodb-csharp

Méthodes publiques

Méthode Description
IsError ( Document doc ) : bool
Translate ( Document error ) : MongoException

Private Methods

Méthode Description
BuildException ( string errnum, string msg, Document error ) : MongoException
GetErrorNum ( string msg ) : string

Method Details

IsError() public static méthode

public static IsError ( Document doc ) : bool
doc MongoDB.Driver.Document
Résultat bool

Translate() public static méthode

public static Translate ( Document error ) : MongoException
error MongoDB.Driver.Document
Résultat MongoDB.Driver.MongoException