Navaron Bracke

replace error message with error code

  1 +import 'package:mobile_scanner/src/enums/mobile_scanner_error_code.dart';
  2 +
  3 +/// This class represents an exception throzn by the mobile scanner.
1 class MobileScannerException implements Exception { 4 class MobileScannerException implements Exception {
2 - String message;  
3 - MobileScannerException(this.message); 5 + MobileScannerException({required this.errorCode});
  6 +
  7 + /// The error code of the exception.
  8 + final MobileScannerErrorCode errorCode;
4 } 9 }