File tree Expand file tree Collapse file tree 4 files changed +15
-0
lines changed
packages/neon_framework/lib Expand file tree Collapse file tree 4 files changed +15
-0
lines changed Original file line number Diff line number Diff line change 36
36
"loginMaintenanceModeDisabled": "Maintenance mode disabled",
37
37
"loginCheckingAccount": "Checking account",
38
38
"errorCredentialsForAccountNoLongerMatch": "The credentials for this account no longer match",
39
+ "errorBruteforceThrottled": "Your requests are throttled at the moment due to brute force protection",
39
40
"errorServerHadAProblemProcessingYourRequest": "The server had a problem while processing your request. You might want to try again",
40
41
"errorSomethingWentWrongTryAgainLater": "Something went wrong. Please try again later",
41
42
"errorUnableToReachServer": "Unable to reach the server",
Original file line number Diff line number Diff line change @@ -191,6 +191,12 @@ abstract class NeonLocalizations {
191
191
/// **'The credentials for this account no longer match'**
192
192
String get errorCredentialsForAccountNoLongerMatch;
193
193
194
+ /// No description provided for @errorBruteforceThrottled.
195
+ ///
196
+ /// In en, this message translates to:
197
+ /// **'Your requests are throttled at the moment due to brute force protection'**
198
+ String get errorBruteforceThrottled;
199
+
194
200
/// No description provided for @errorServerHadAProblemProcessingYourRequest.
195
201
///
196
202
/// In en, this message translates to:
Original file line number Diff line number Diff line change @@ -77,6 +77,9 @@ class NeonLocalizationsEn extends NeonLocalizations {
77
77
@override
78
78
String get errorCredentialsForAccountNoLongerMatch => 'The credentials for this account no longer match' ;
79
79
80
+ @override
81
+ String get errorBruteforceThrottled => 'Your requests are throttled at the moment due to brute force protection' ;
82
+
80
83
@override
81
84
String get errorServerHadAProblemProcessingYourRequest =>
82
85
'The server had a problem while processing your request. You might want to try again' ;
Original file line number Diff line number Diff line change @@ -174,6 +174,11 @@ class NeonError extends StatelessWidget {
174
174
isUnauthorized: true ,
175
175
);
176
176
}
177
+ if (error.statusCode == 429 ) {
178
+ return NeonExceptionDetails (
179
+ getText: (context) => NeonLocalizations .of (context).errorBruteforceThrottled,
180
+ );
181
+ }
177
182
if (error.statusCode >= 500 && error.statusCode <= 599 ) {
178
183
return NeonExceptionDetails (
179
184
getText: (context) => NeonLocalizations .of (context).errorServerHadAProblemProcessingYourRequest,
You can’t perform that action at this time.
0 commit comments