Removed unused imports for old docuframe SDK and fixed unneccesary docuframe exceptions on try/catch block

This commit is contained in:
Dennis Nemec
2025-11-28 20:49:06 +01:00
parent a6e1c52eda
commit 0c61f65961
2 changed files with 6 additions and 11 deletions

View File

@ -1,9 +1,7 @@
import 'dart:convert';
import 'dart:io';
import 'package:docuframe/docuframe.dart' as df;
import 'package:flutter/material.dart';
import 'package:hl_lieferservice/dto/delivery_response.dart';
import 'package:hl_lieferservice/dto/delivery_update.dart';
import 'package:hl_lieferservice/dto/delivery_update_response.dart';
@ -54,10 +52,9 @@ class DeliveryInfoService {
debugPrint("ERROR UPDATING:");
debugPrint(responseDto.message);
} on df.DocuFrameException catch (e, st) {
} catch (e, st) {
debugPrint("ERROR WHILE UPDATING DELIVERY");
debugPrint(e.errorMessage);
debugPrint(e.errorCode);
debugPrint("$e");
debugPrint(st.toString());
rethrow;
@ -89,10 +86,9 @@ class DeliveryInfoService {
debugPrint("ERROR UPDATING:");
debugPrint(responseDto.message);
} on df.DocuFrameException catch (e, st) {
} catch (e, st) {
debugPrint("ERROR WHILE UPDATING DELIVERY");
debugPrint(e.errorMessage);
debugPrint(e.errorCode);
debugPrint("$e");
debugPrint(st.toString());
rethrow;