-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add exception type and documentation for when rate limiting exception
(but not any tests, because that is kind of hard to test without possibly causing a DOS)
- Loading branch information
1 parent
d1ad890
commit 79cacb9
Showing
3 changed files
with
15 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
libs/core/src/main/java/de/westnordost/osmapi/common/errors/OsmTooManyRequestsException.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package de.westnordost.osmapi.common.errors; | ||
|
||
/** When the request has been blocked due to rate limiting */ | ||
public class OsmTooManyRequestsException extends OsmApiException { | ||
private static final long serialVersionUID = 1L; | ||
|
||
public OsmTooManyRequestsException(int errorCode, String errorTitle, String description) | ||
{ | ||
super(errorCode, errorTitle, description); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters