Mercurial > dive4elements > river
diff artifacts/src/main/java/org/dive4elements/river/artifacts/states/RangeState.java @ 8776:1116079e6624
Tidied.
author | Tom Gottfried <tom@intevation.de> |
---|---|
date | Wed, 02 Dec 2015 19:35:11 +0100 |
parents | e4606eae8ea5 |
children | 21e65960a9e3 0a5239a1e46e |
line wrap: on
line diff
--- a/artifacts/src/main/java/org/dive4elements/river/artifacts/states/RangeState.java Tue Nov 24 18:52:24 2015 +0100 +++ b/artifacts/src/main/java/org/dive4elements/river/artifacts/states/RangeState.java Wed Dec 02 19:35:11 2015 +0100 @@ -41,11 +41,13 @@ if (from < fromValid) { log.error( "Invalid 'from'. " + from + " is smaller than " + fromValid); + // error message used in client to resolve i18n throw new IllegalArgumentException("error_feed_from_out_of_range"); } else if (to > toValid) { log.error( "Invalid 'to'. " + to + " is bigger than " + toValid); + // error message used in client to resolve i18n throw new IllegalArgumentException("error_feed_to_out_of_range"); }