comparison 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
comparison
equal deleted inserted replaced
8775:76c84294c1d3 8776:1116079e6624
39 throws IllegalArgumentException 39 throws IllegalArgumentException
40 { 40 {
41 if (from < fromValid) { 41 if (from < fromValid) {
42 log.error( 42 log.error(
43 "Invalid 'from'. " + from + " is smaller than " + fromValid); 43 "Invalid 'from'. " + from + " is smaller than " + fromValid);
44 // error message used in client to resolve i18n
44 throw new IllegalArgumentException("error_feed_from_out_of_range"); 45 throw new IllegalArgumentException("error_feed_from_out_of_range");
45 } 46 }
46 else if (to > toValid) { 47 else if (to > toValid) {
47 log.error( 48 log.error(
48 "Invalid 'to'. " + to + " is bigger than " + toValid); 49 "Invalid 'to'. " + to + " is bigger than " + toValid);
50 // error message used in client to resolve i18n
49 throw new IllegalArgumentException("error_feed_to_out_of_range"); 51 throw new IllegalArgumentException("error_feed_to_out_of_range");
50 } 52 }
51 53
52 return true; 54 return true;
53 } 55 }

http://dive4elements.wald.intevation.org