Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Fetching contributors…
Cannot retrieve contributors at this time
16 lines (11 sloc) 873 Bytes
module mongo_h;
import bson_h;
private import std.socket;
public static string mongo_error_str[] = ["Connection success!","Could not create a socket.",
"An error occured while calling connect().","An error occured while calling getaddrinfo().",
"Warning: connected to a non-master node (read-only).","Given rs name doesn't match this replica set.",
"Can't find primary in replica set. Connection closed.",
"An error occurred while reading or writing on socket.","The response is not the expected length.",
"The command returned with 'ok' value of 0.","The cursor has no more results.",
"The cursor has timed out or is not recognized.","Tailable cursor still alive but no data.",
"BSON not valid for the specified op.","BSON object has not been finished."];
Jump to Line
Something went wrong with that request. Please try again.