Skip to content

Commit d1a42f0

Browse files
committed
JAVA-1369: Deprecated MongoInterruptedException constructors
1 parent 63178a5 commit d1a42f0

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

src/main/com/mongodb/MongoInterruptedException.java

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,23 @@
2525
public class MongoInterruptedException extends MongoException {
2626
private static final long serialVersionUID = -4110417867718417860L;
2727

28+
/**
29+
* Construct a new instance.
30+
*
31+
* @param e the cause
32+
*/
33+
@Deprecated
2834
public MongoInterruptedException(final InterruptedException e) {
2935
super("A driver operation has been interrupted", e);
3036
}
3137

38+
/**
39+
* Construct a new instance.
40+
*
41+
* @param message the message
42+
* @param e the cause
43+
*/
44+
@Deprecated
3245
public MongoInterruptedException(final String message, final InterruptedException e) {
3346
super(message, e);
3447
}

0 commit comments

Comments
 (0)