Skip to content

Commit 682edf6

Browse files
committed
Deprecate CommandFailureException.getCommandResult
JAVA-1336
1 parent 8bbc28a commit 682edf6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/main/com/mongodb/CommandFailureException.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,9 @@ public CommandFailureException(CommandResult commandResult){
3737
* Gets the getlasterror command result document.
3838
*
3939
* @return the command result
40+
* @deprecated there is no replacement for this method
4041
*/
42+
@Deprecated
4143
public CommandResult getCommandResult() {
4244
return commandResult;
4345
}

0 commit comments

Comments
 (0)