From 035d9d5af091b9472d82cd831f6a8bfc917dd5ec Mon Sep 17 00:00:00 2001 From: Stephane Nicoll Date: Mon, 3 Mar 2014 10:02:39 +0100 Subject: [PATCH] Clarify exception handling in converter Issue: SPR-11500 --- src/asciidoc/index.adoc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/asciidoc/index.adoc b/src/asciidoc/index.adoc index efebb12598..28713c1181 100644 --- a/src/asciidoc/index.adoc +++ b/src/asciidoc/index.adoc @@ -9760,9 +9760,9 @@ The SPI to implement type conversion logic is simple and strongly typed: To create your own Converter, simply implement the interface above. Parameterize S as the type you are converting from, and T as the type you are converting to. For each call to convert(S), the source argument is guaranteed to be NOT null. Your Converter may -throw any Exception if conversion fails. An IllegalArgumentException should be thrown to -report an invalid source value. Take care to ensure your Converter implementation is -thread-safe. +throw any unchecked exception if conversion fails. An `IllegalArgumentException` should +be thrown to report an invalid source value. Take care to ensure your Converter implementation +is thread-safe. Several converter implementations are provided in the `core.convert.support` package as a convenience. These include converters from Strings to Numbers and other common types.