File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
discovery/src/test/java/com/ibm/watson/developer_cloud/discovery/v1 Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change 112
112
import com .ibm .watson .developer_cloud .discovery .v1 .query .AggregationType ;
113
113
import com .ibm .watson .developer_cloud .discovery .v1 .query .Operator ;
114
114
import com .ibm .watson .developer_cloud .http .HttpMediaType ;
115
+ import com .ibm .watson .developer_cloud .service .exception .BadRequestException ;
115
116
import com .ibm .watson .developer_cloud .service .exception .ForbiddenException ;
116
117
import com .ibm .watson .developer_cloud .service .exception .NotFoundException ;
117
118
import com .ibm .watson .developer_cloud .service .exception .UnauthorizedException ;
@@ -1943,6 +1944,9 @@ public void tokenizationDictionaryOperationsAreSuccessful() throws InterruptedEx
1943
1944
.collectionId (testCollectionId )
1944
1945
.build ();
1945
1946
discovery .deleteTokenizationDictionary (deleteOptions ).execute ();
1947
+ } catch (BadRequestException ex ) {
1948
+ // this most likely means the service wasn't ready to handle another tokenization file - this is fine
1949
+ System .out .println ("Service wasn't ready yet! Error: " + ex .getMessage ());
1946
1950
} finally {
1947
1951
// delete test collection
1948
1952
DeleteCollectionOptions deleteCollectionOptions = new DeleteCollectionOptions .Builder ()
You can’t perform that action at this time.
0 commit comments