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.
2 parents e19180d + bb70453 commit ecf5d75Copy full SHA for ecf5d75
java/com/google/openlocationcode/OpenLocationCode.java
@@ -152,7 +152,7 @@ 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) throws IllegalArgumentException {
156
if (!isValidCode(code.toUpperCase())) {
157
throw new IllegalArgumentException(
158
"The provided code '" + code + "' is not a valid Open Location Code.");
0 commit comments