Skip to content

Commit cd0c73f

Browse files
abdul4samadJustin Poehnelt
andauthored
fix: #697 Changed expected error message in to ApiException (#708)
* fix: #697 Changed expected error message in to ApiException * Update src/main/java/com/google/maps/errors/ApiException.java Co-authored-by: Justin Poehnelt <jpoehnelt@google.com> Co-authored-by: Justin Poehnelt <jpoehnelt@google.com>
1 parent 5f08de3 commit cd0c73f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/java/com/google/maps/errors/ApiException.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public static ApiException from(String status, String errorMessage) {
4949
} else if ("NOT_FOUND".equals(status)) {
5050
return new NotFoundException(errorMessage);
5151
} else if ("OVER_QUERY_LIMIT".equals(status)) {
52-
if ("You have exceeded your daily request quota for this API."
52+
if ("You have exceeded your daily request quota for this API. If you did not set a custom daily request quota, verify your project has an active billing account."
5353
.equalsIgnoreCase(errorMessage)) {
5454
return new OverDailyLimitException(errorMessage);
5555
}

0 commit comments

Comments
 (0)