[libbluray-devel] [Git][videolan/libbluray][master] 2 commits: BDJException: add cause

Petri Hintukainen gitlab at videolan.org
Mon Apr 5 13:41:50 UTC 2021



Petri Hintukainen pushed to branch master at VideoLAN / libbluray


Commits:
44afc910 by hpi1 at 2021-04-05T16:41:06+03:00
BDJException: add cause

- - - - -
bc478f02 by hpi1 at 2021-04-05T16:41:06+03:00
MountManager: store original exception in MountException

- - - - -


3 changed files:

- src/libbluray/bdj/java/org/videolan/BDJException.java
- src/libbluray/bdj/java/org/videolan/MountException.java
- src/libbluray/bdj/java/org/videolan/MountManager.java


Changes:

=====================================
src/libbluray/bdj/java/org/videolan/BDJException.java
=====================================
@@ -28,5 +28,13 @@ public class BDJException extends Exception {
         super(message);
     }
 
+    public BDJException(String message, Throwable cause) {
+        super(message, cause);
+    }
+
+    public BDJException(Throwable cause) {
+        super(cause);
+    }
+
     private static final long serialVersionUID = -9115687236654567595L;
 }


=====================================
src/libbluray/bdj/java/org/videolan/MountException.java
=====================================
@@ -28,5 +28,13 @@ public class MountException extends BDJException {
         super(message);
     }
 
+    public MountException(String message, Throwable cause) {
+        super(message, cause);
+    }
+
+    public MountException(Throwable cause) {
+        super(cause);
+    }
+
     private static final long serialVersionUID = 4108254994972237877L;
 }


=====================================
src/libbluray/bdj/java/org/videolan/MountManager.java
=====================================
@@ -89,7 +89,7 @@ public class MountManager {
                     } catch (IOException e1) {
                     }
                 }
-                throw new MountException();
+                throw new MountException(e);
             }
 
             InputStream inStream = null;
@@ -139,7 +139,7 @@ public class MountManager {
             } catch (IOException e) {
                 logger.error("Error uncompressing " + path + ": " + e);
                 mountPoint.remove();
-                throw new MountException();
+                throw new MountException(e);
             } finally {
                 if (inStream != null) {
                     try {



View it on GitLab: https://code.videolan.org/videolan/libbluray/-/compare/12b5bd8fc2317304386455a70f12a0e738dfb961...bc478f027cf9312ae15ff7d5c16621c07bd7b4f1

-- 
View it on GitLab: https://code.videolan.org/videolan/libbluray/-/compare/12b5bd8fc2317304386455a70f12a0e738dfb961...bc478f027cf9312ae15ff7d5c16621c07bd7b4f1
You're receiving this email because of your account on code.videolan.org.




More information about the libbluray-devel mailing list