CSMongo.Responses.QueryResponse.CheckForExceptions C# (CSharp) 메소드

CheckForExceptions() 공개 메소드

Checks for a default response if there is an error
public CheckForExceptions ( ) : void
리턴 void
        public void CheckForExceptions()
        {
            BsonObject result = this.GetDefaultResponse();
            if (result.Has("errmsg")) {
                throw new MongoServerException(result.Get<string>("errmsg", "Unknown database error!"));
            }
        }