Skip to content

Commit 035d9d5

Browse files
committed
Clarify exception handling in converter
Issue: SPR-11500
1 parent 8f3a897 commit 035d9d5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/asciidoc/index.adoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9760,9 +9760,9 @@ The SPI to implement type conversion logic is simple and strongly typed:
97609760
To create your own Converter, simply implement the interface above. Parameterize S as
97619761
the type you are converting from, and T as the type you are converting to. For each call
97629762
to convert(S), the source argument is guaranteed to be NOT null. Your Converter may
9763-
throw any Exception if conversion fails. An IllegalArgumentException should be thrown to
9764-
report an invalid source value. Take care to ensure your Converter implementation is
9765-
thread-safe.
9763+
throw any unchecked exception if conversion fails. An `IllegalArgumentException` should
9764+
be thrown to report an invalid source value. Take care to ensure your Converter implementation
9765+
is thread-safe.
97669766

97679767
Several converter implementations are provided in the `core.convert.support` package as
97689768
a convenience. These include converters from Strings to Numbers and other common types.

0 commit comments

Comments
 (0)