Skip to content

Commit 6c66410

Browse files
committed
JAVA-1370: Deprecated CommandFailureException constructor and getCommandResult method
1 parent d1a42f0 commit 6c66410

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
@@ -27,7 +27,9 @@ public class CommandFailureException extends MongoException {
2727
* Construct a new instance with the CommandResult from a failed command
2828
*
2929
* @param commandResult the result
30+
* @deprecated for internal use only
3031
*/
32+
@Deprecated
3133
public CommandFailureException(CommandResult commandResult){
3234
super(ServerError.getCode(commandResult), commandResult.toString());
3335
this.commandResult = commandResult;

0 commit comments

Comments
 (0)