diff options
author | CGantert345 <57003061+CGantert345@users.noreply.github.com> | 2023-11-30 10:37:58 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-30 10:37:58 +0100 |
commit | eb27ea529f109a495b2b156469dff8869a93df14 (patch) | |
tree | 195597b3d63620a43d6103790a11933005210c0b /src/main/java/org/uic/barcode/dynamicFrame/api/DynamicFrameCoder.java | |
parent | Merge pull request #74 from UnionInternationalCheminsdeFer/1.4.5 (diff) | |
parent | deprecated function without dedicated security provider (diff) | |
download | UIC-barcode-eb27ea529f109a495b2b156469dff8869a93df14.tar UIC-barcode-eb27ea529f109a495b2b156469dff8869a93df14.tar.gz UIC-barcode-eb27ea529f109a495b2b156469dff8869a93df14.tar.bz2 UIC-barcode-eb27ea529f109a495b2b156469dff8869a93df14.tar.lz UIC-barcode-eb27ea529f109a495b2b156469dff8869a93df14.tar.xz UIC-barcode-eb27ea529f109a495b2b156469dff8869a93df14.tar.zst UIC-barcode-eb27ea529f109a495b2b156469dff8869a93df14.zip |
Diffstat (limited to '')
-rw-r--r-- | src/main/java/org/uic/barcode/dynamicFrame/api/DynamicFrameCoder.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/main/java/org/uic/barcode/dynamicFrame/api/DynamicFrameCoder.java b/src/main/java/org/uic/barcode/dynamicFrame/api/DynamicFrameCoder.java index 53efb3e..091cd4c 100644 --- a/src/main/java/org/uic/barcode/dynamicFrame/api/DynamicFrameCoder.java +++ b/src/main/java/org/uic/barcode/dynamicFrame/api/DynamicFrameCoder.java @@ -49,10 +49,10 @@ public class DynamicFrameCoder { if (frame.getFormat() != null && frame.getFormat().equals(Constants.DYNAMIC_BARCODE_FORMAT_VERSION_1)) {
return frame;
- }
- } catch(Exception e1) {
+ }
+ } catch (Throwable e) {
frame = null;
- // failed, try next
+ // failed, try next
}
frame = new SimpleDynamicFrame();
@@ -62,7 +62,7 @@ public class DynamicFrameCoder { if (frame.getFormat() != null && frame.getFormat().equals(Constants.DYNAMIC_BARCODE_FORMAT_VERSION_2)) {
return frame;
}
- } catch(Exception e1) {
+ } catch(Throwable e) {
throw new EncodingFormatException("Dynamic Header Version not supported");
// failed
}
|