mirror of
https://github.com/Xevion/paperless-mobile.git
synced 2025-12-14 10:12:21 -06:00
fix: Add custom fields, translations, add app logs to login routes
This commit is contained in:
16
lib/core/bloc/transient_error.dart
Normal file
16
lib/core/bloc/transient_error.dart
Normal file
@@ -0,0 +1,16 @@
|
||||
import 'package:paperless_api/paperless_api.dart';
|
||||
|
||||
sealed class TransientError extends Error {}
|
||||
|
||||
class TransientPaperlessApiError extends TransientError {
|
||||
final ErrorCode code;
|
||||
final String? details;
|
||||
|
||||
TransientPaperlessApiError({required this.code, this.details});
|
||||
}
|
||||
|
||||
class TransientMessageError extends TransientError {
|
||||
final String message;
|
||||
|
||||
TransientMessageError({required this.message});
|
||||
}
|
||||
Reference in New Issue
Block a user