/// <summary> /// Initializes a new instance of the <see cref="MongoMapReduceException"/> class. /// </summary> /// <param name="exception">The exception.</param> public MongoMapReduceException(MongoCommandException exception) : base(exception.Message,exception.Error, exception.Command) { MapReduceResult = new MapReduceResult(exception.Error); }
/// <summary> /// Initializes a new instance of the <see cref="MongoMapReduceException"/> class. /// </summary> /// <param name="exception">The exception.</param> public MongoMapReduceException(MongoCommandException exception) : base(exception.Message, exception.Error, exception.Command) { MapReduceResult = new MapReduceResult(exception.Error); }