We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e19180d commit c3cd20aCopy full SHA for c3cd20a
java/com/google/openlocationcode/OpenLocationCode.java
@@ -152,7 +152,8 @@ public double getEastLongitude() {
152
* @throws IlegalArgumentException when the passed code is not valid.
153
* @constructor
154
*/
155
- public OpenLocationCode(String code) {
+ public OpenLocationCode(String code)
156
+ throws IllegalArgumentException {
157
if (!isValidCode(code.toUpperCase())) {
158
throw new IllegalArgumentException(
159
"The provided code '" + code + "' is not a valid Open Location Code.");
0 commit comments