File tree Expand file tree Collapse file tree 2 files changed +21
-2
lines changed Expand file tree Collapse file tree 2 files changed +21
-2
lines changed Original file line number Diff line number Diff line change @@ -146,6 +146,11 @@ public ServerAddress getServerUsed() {
146
146
static class CommandFailure extends MongoException {
147
147
private static final long serialVersionUID = 1L ;
148
148
149
+ /**
150
+ *
151
+ * @param res the result
152
+ * @param msg the message
153
+ */
149
154
public CommandFailure ( CommandResult res , String msg ){
150
155
super ( ServerError .getCode ( res ) , msg );
151
156
}
Original file line number Diff line number Diff line change @@ -96,11 +96,20 @@ public static class Network extends MongoException {
96
96
97
97
private static final long serialVersionUID = -4415279469780082174L ;
98
98
99
+ /**
100
+ *
101
+ * @param msg the message
102
+ * @param ioe the cause
103
+ */
99
104
public Network ( String msg , java .io .IOException ioe ){
100
105
super ( -2 , msg , ioe );
101
106
_ioe = ioe ;
102
107
}
103
108
109
+ /**
110
+ *
111
+ * @param ioe the cause
112
+ */
104
113
public Network ( java .io .IOException ioe ){
105
114
super ( ioe .toString () , ioe );
106
115
_ioe = ioe ;
@@ -116,6 +125,11 @@ public static class DuplicateKey extends MongoException {
116
125
117
126
private static final long serialVersionUID = -4415279469780082174L ;
118
127
128
+ /**
129
+ *
130
+ * @param code the error code
131
+ * @param msg the message
132
+ */
119
133
public DuplicateKey ( int code , String msg ){
120
134
super ( code , msg );
121
135
}
@@ -133,8 +147,8 @@ public static class CursorNotFound extends MongoException {
133
147
134
148
/**
135
149
*
136
- * @param cursorId
137
- * @param serverAddress
150
+ * @param cursorId cursor
151
+ * @param serverAddress server address
138
152
*/
139
153
public CursorNotFound (long cursorId , ServerAddress serverAddress ){
140
154
super ( -5 , "cursor " + cursorId + " not found on server " + serverAddress );
You can’t perform that action at this time.
0 commit comments