Add various informative alert-boxes

This commit is contained in:
2025-11-09 21:31:03 +01:00
parent c108859899
commit fd5e714074
23 changed files with 426 additions and 130 deletions

View File

@@ -123,7 +123,7 @@ class APIClient {
RequestLog.addRequestAPIError(name, t0, method, uri, req.body, req.headers, responseStatusCode, responseBody, responseHeaders, apierr);
Toaster.error("Error", apierr.message);
throw APIException(responseStatusCode, apierr.error, apierr.errhighlight, apierr.message);
throw APIException(responseStatusCode, apierr.error, apierr.errhighlight, apierr.message, true);
}
try {

View File

@@ -3,8 +3,9 @@ class APIException implements Exception {
final int error;
final int errHighlight;
final String message;
final bool toastShown;
APIException(this.httpStatus, this.error, this.errHighlight, this.message);
APIException(this.httpStatus, this.error, this.errHighlight, this.message, this.toastShown);
@override
String toString() {