Skip to content

Commit efdb9dd

Browse files
committed
JAVA-1140: Implemented BulkWriteError.toString
1 parent 60081fa commit efdb9dd

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/main/com/mongodb/BulkWriteError.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,4 +115,14 @@ public int hashCode() {
115115
result = 31 * result + details.hashCode();
116116
return result;
117117
}
118+
119+
@Override
120+
public String toString() {
121+
return "BulkWriteError{"
122+
+ "index=" + index
123+
+ ", code=" + code
124+
+ ", message='" + message + '\''
125+
+ ", details=" + details
126+
+ '}';
127+
}
118128
}

0 commit comments

Comments
 (0)