mirror of
https://github.com/FoggedLens/deflock-app.git
synced 2026-08-18 08:57:14 +02:00
too much, sorry
This commit is contained in:
@@ -8,4 +8,16 @@ class OverpassNodeLimitException implements Exception {
|
||||
|
||||
@override
|
||||
String toString() => 'OverpassNodeLimitException: $message';
|
||||
}
|
||||
|
||||
/// Exception thrown when Overpass API rate limits the request.
|
||||
/// Should trigger longer backoff delays, not area splitting.
|
||||
class OverpassRateLimitException implements Exception {
|
||||
final String message;
|
||||
final String? serverResponse;
|
||||
|
||||
OverpassRateLimitException(this.message, {this.serverResponse});
|
||||
|
||||
@override
|
||||
String toString() => 'OverpassRateLimitException: $message';
|
||||
}
|
||||
Reference in New Issue
Block a user