Skip to content

Commit cdd1ef8

Browse files
committed
using a more specfic exception
1 parent b055edc commit cdd1ef8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

server/src/main/java/org/elasticsearch/cluster/metadata/DataStream.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -421,7 +421,7 @@ public Settings getEffectiveSettings(ProjectMetadata projectMetadata) {
421421
* @param projectMetadata
422422
* @param indicesService Used in the logic that merges all mappings together into one mapping
423423
* @return A JSON CompressedXContent representation of the effective mappings of this data stream
424-
* @throws Exception
424+
* @throws IOException
425425
*/
426426
public CompressedXContent getEffectiveMappings(ProjectMetadata projectMetadata, IndicesService indicesService) throws IOException {
427427
return getEffectiveMappings(projectMetadata, getMatchingIndexTemplate(projectMetadata), mappings, getWriteIndex(), indicesService);
@@ -440,7 +440,7 @@ public CompressedXContent getEffectiveMappings(ProjectMetadata projectMetadata,
440440
* from this writeIndex.
441441
* @param indicesService
442442
* @return A JSON CompressedXContent representation of the effective mappings for the composableTemplate plus mappingsOverrides
443-
* @throws Exception
443+
* @throws IOException
444444
*/
445445
@SuppressWarnings("unchecked")
446446
public static CompressedXContent getEffectiveMappings(

0 commit comments

Comments
 (0)