Skip to content

Commit fdb90d2

Browse files
committed
Remove throws declarations from the API
JAVA-5527
1 parent 6b77f78 commit fdb90d2

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

driver-core/src/main/com/mongodb/client/result/bulk/ClientBulkWriteResult.java

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -52,47 +52,47 @@ public interface ClientBulkWriteResult {
5252
* @return Whether there are verbose results.
5353
* @throws UnsupportedOperationException If this result is not {@linkplain #isAcknowledged() acknowledged}.
5454
*/
55-
boolean hasVerboseResults() throws UnsupportedOperationException;
55+
boolean hasVerboseResults();
5656

5757
/**
5858
* The number of documents that were inserted across all insert operations.
5959
*
6060
* @return The number of documents that were inserted.
6161
* @throws UnsupportedOperationException If this result is not {@linkplain #isAcknowledged() acknowledged}.
6262
*/
63-
long getInsertedCount() throws UnsupportedOperationException;
63+
long getInsertedCount();
6464

6565
/**
6666
* The number of documents that were upserted across all update and replace operations.
6767
*
6868
* @return The number of documents that were upserted.
6969
* @throws UnsupportedOperationException If this result is not {@linkplain #isAcknowledged() acknowledged}.
7070
*/
71-
long getUpsertedCount() throws UnsupportedOperationException;
71+
long getUpsertedCount();
7272

7373
/**
7474
* The number of documents that matched the filters across all operations with filters.
7575
*
7676
* @return The number of documents that were matched.
7777
* @throws UnsupportedOperationException If this result is not {@linkplain #isAcknowledged() acknowledged}.
7878
*/
79-
long getMatchedCount() throws UnsupportedOperationException;
79+
long getMatchedCount();
8080

8181
/**
8282
* The number of documents that were modified across all update and replace operations.
8383
*
8484
* @return The number of documents that were modified.
8585
* @throws UnsupportedOperationException If this result is not {@linkplain #isAcknowledged() acknowledged}.
8686
*/
87-
long getModifiedCount() throws UnsupportedOperationException;
87+
long getModifiedCount();
8888

8989
/**
9090
* The number of documents that were deleted across all delete operations.
9191
*
9292
* @return The number of documents that were deleted.
9393
* @throws UnsupportedOperationException If this result is not {@linkplain #isAcknowledged() acknowledged}.
9494
*/
95-
long getDeletedCount() throws UnsupportedOperationException;
95+
long getDeletedCount();
9696

9797
/**
9898
* The indexed {@link ClientInsertOneResult}s.
@@ -106,7 +106,7 @@ public interface ClientBulkWriteResult {
106106
* or does not have {@linkplain #hasVerboseResults() verbose results}.
107107
* @see ClientBulkWriteException#getWriteErrors()
108108
*/
109-
Map<Long, ClientInsertOneResult> getInsertResults() throws UnsupportedOperationException;
109+
Map<Long, ClientInsertOneResult> getInsertResults();
110110

111111
/**
112112
* The indexed {@link ClientUpdateResult}s.
@@ -120,7 +120,7 @@ public interface ClientBulkWriteResult {
120120
* or does not have {@linkplain #hasVerboseResults() verbose results}.
121121
* @see ClientBulkWriteException#getWriteErrors()
122122
*/
123-
Map<Long, ClientUpdateResult> getUpdateResults() throws UnsupportedOperationException;
123+
Map<Long, ClientUpdateResult> getUpdateResults();
124124

125125
/**
126126
* The indexed {@link ClientDeleteResult}s.
@@ -134,5 +134,5 @@ public interface ClientBulkWriteResult {
134134
* or does not have {@linkplain #hasVerboseResults() verbose results}.
135135
* @see ClientBulkWriteException#getWriteErrors()
136136
*/
137-
Map<Long, ClientDeleteResult> getDeleteResults() throws UnsupportedOperationException;
137+
Map<Long, ClientDeleteResult> getDeleteResults();
138138
}

0 commit comments

Comments
 (0)