Skip to content

Commit

Permalink
Handle ZXingError class in ios-wrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
GUIEEN committed Dec 23, 2024
1 parent a864dc8 commit f919288
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions wrappers/ios/Sources/Wrapper/Reader/ZXIBarcodeReader.mm
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,9 @@ - (instancetype)initWithOptions:(ZXIReaderOptions*)options{
];
}
return zxiResults;
} catch (const ZXing::Error& e) {
SetNSError(error, ZXIReaderError, ZXing::ToString(e).c_str());
return nil;
} catch(std::exception &e) {
SetNSError(error, ZXIReaderError, e.what());
return nil;
Expand Down

0 comments on commit f919288

Please sign in to comment.