cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From serg...@apache.org
Subject cxf git commit: [CXF-7393] Add message to jws/jwe exceptions, patch from Amir Behnam applied, This closes #277
Date Tue, 13 Jun 2017 15:45:37 GMT
Repository: cxf
Updated Branches:
  refs/heads/3.1.x-fixes 4fd67ac58 -> 02da972c8


[CXF-7393] Add message to jws/jwe exceptions, patch from Amir Behnam applied, This closes
#277


Project: http://git-wip-us.apache.org/repos/asf/cxf/repo
Commit: http://git-wip-us.apache.org/repos/asf/cxf/commit/02da972c
Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/02da972c
Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/02da972c

Branch: refs/heads/3.1.x-fixes
Commit: 02da972c8b7261c2acf20abb9ac39da0fdab6d6a
Parents: 4fd67ac
Author: Sergey Beryozkin <sberyozkin@gmail.com>
Authored: Tue Jun 13 16:44:26 2017 +0100
Committer: Sergey Beryozkin <sberyozkin@gmail.com>
Committed: Tue Jun 13 16:45:19 2017 +0100

----------------------------------------------------------------------
 .../org/apache/cxf/rs/security/jose/common/JoseException.java | 7 +++++--
 .../org/apache/cxf/rs/security/jose/jwe/JweException.java     | 2 +-
 .../org/apache/cxf/rs/security/jose/jwk/JwkException.java     | 7 +++++--
 .../org/apache/cxf/rs/security/jose/jws/JwsException.java     | 2 +-
 .../org/apache/cxf/rs/security/jose/jwt/JwtException.java     | 7 +++++--
 5 files changed, 17 insertions(+), 8 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/02da972c/rt/rs/security/jose-parent/jose/src/main/java/org/apache/cxf/rs/security/jose/common/JoseException.java
----------------------------------------------------------------------
diff --git a/rt/rs/security/jose-parent/jose/src/main/java/org/apache/cxf/rs/security/jose/common/JoseException.java
b/rt/rs/security/jose-parent/jose/src/main/java/org/apache/cxf/rs/security/jose/common/JoseException.java
index ffaf2d1..c495a95 100644
--- a/rt/rs/security/jose-parent/jose/src/main/java/org/apache/cxf/rs/security/jose/common/JoseException.java
+++ b/rt/rs/security/jose-parent/jose/src/main/java/org/apache/cxf/rs/security/jose/common/JoseException.java
@@ -24,10 +24,13 @@ public class JoseException extends RuntimeException {
     public JoseException() {
 
     }
-    public JoseException(String error) {
-        super(error);
+    public JoseException(String message) {
+        super(message);
     }
     public JoseException(Throwable cause) {
         super(cause);
     }
+    public JoseException(String message, Throwable cause) {
+        super(message, cause);
+    }
 }

http://git-wip-us.apache.org/repos/asf/cxf/blob/02da972c/rt/rs/security/jose-parent/jose/src/main/java/org/apache/cxf/rs/security/jose/jwe/JweException.java
----------------------------------------------------------------------
diff --git a/rt/rs/security/jose-parent/jose/src/main/java/org/apache/cxf/rs/security/jose/jwe/JweException.java
b/rt/rs/security/jose-parent/jose/src/main/java/org/apache/cxf/rs/security/jose/jwe/JweException.java
index 7896ee5..16077d9 100644
--- a/rt/rs/security/jose-parent/jose/src/main/java/org/apache/cxf/rs/security/jose/jwe/JweException.java
+++ b/rt/rs/security/jose-parent/jose/src/main/java/org/apache/cxf/rs/security/jose/jwe/JweException.java
@@ -28,7 +28,7 @@ public class JweException extends JoseException {
         this(status, null);
     }
     public JweException(Error status, Throwable cause) {
-        super(cause);
+        super(status != null ? status.toString() : null, cause);
         this.status = status;
     }
     public Error getError() {

http://git-wip-us.apache.org/repos/asf/cxf/blob/02da972c/rt/rs/security/jose-parent/jose/src/main/java/org/apache/cxf/rs/security/jose/jwk/JwkException.java
----------------------------------------------------------------------
diff --git a/rt/rs/security/jose-parent/jose/src/main/java/org/apache/cxf/rs/security/jose/jwk/JwkException.java
b/rt/rs/security/jose-parent/jose/src/main/java/org/apache/cxf/rs/security/jose/jwk/JwkException.java
index da54572..d580a43 100644
--- a/rt/rs/security/jose-parent/jose/src/main/java/org/apache/cxf/rs/security/jose/jwk/JwkException.java
+++ b/rt/rs/security/jose-parent/jose/src/main/java/org/apache/cxf/rs/security/jose/jwk/JwkException.java
@@ -26,10 +26,13 @@ public class JwkException extends JoseException {
     public JwkException() {
 
     }
-    public JwkException(String error) {
-        super(error);
+    public JwkException(String message) {
+        super(message);
     }
     public JwkException(Throwable cause) {
         super(cause);
     }
+    public JwkException(String message, Throwable cause) {
+        super(message, cause);
+    }
 }

http://git-wip-us.apache.org/repos/asf/cxf/blob/02da972c/rt/rs/security/jose-parent/jose/src/main/java/org/apache/cxf/rs/security/jose/jws/JwsException.java
----------------------------------------------------------------------
diff --git a/rt/rs/security/jose-parent/jose/src/main/java/org/apache/cxf/rs/security/jose/jws/JwsException.java
b/rt/rs/security/jose-parent/jose/src/main/java/org/apache/cxf/rs/security/jose/jws/JwsException.java
index 29ef682..4521d52 100644
--- a/rt/rs/security/jose-parent/jose/src/main/java/org/apache/cxf/rs/security/jose/jws/JwsException.java
+++ b/rt/rs/security/jose-parent/jose/src/main/java/org/apache/cxf/rs/security/jose/jws/JwsException.java
@@ -28,7 +28,7 @@ public class JwsException extends JoseException {
         this(status, null);
     }
     public JwsException(Error status, Throwable cause) {
-        super(cause);
+        super(status != null ? status.toString() : null, cause);
         this.status = status;
     }
     public Error getError() {

http://git-wip-us.apache.org/repos/asf/cxf/blob/02da972c/rt/rs/security/jose-parent/jose/src/main/java/org/apache/cxf/rs/security/jose/jwt/JwtException.java
----------------------------------------------------------------------
diff --git a/rt/rs/security/jose-parent/jose/src/main/java/org/apache/cxf/rs/security/jose/jwt/JwtException.java
b/rt/rs/security/jose-parent/jose/src/main/java/org/apache/cxf/rs/security/jose/jwt/JwtException.java
index 5b8db17..e2cf01c 100644
--- a/rt/rs/security/jose-parent/jose/src/main/java/org/apache/cxf/rs/security/jose/jwt/JwtException.java
+++ b/rt/rs/security/jose-parent/jose/src/main/java/org/apache/cxf/rs/security/jose/jwt/JwtException.java
@@ -26,10 +26,13 @@ public class JwtException extends JoseException {
     public JwtException() {
 
     }
-    public JwtException(String error) {
-        super(error);
+    public JwtException(String message) {
+        super(message);
     }
     public JwtException(Throwable cause) {
         super(cause);
     }
+    public JwtException(String error, Throwable cause) {
+        super(error, cause);
+    }
 }


Mime
View raw message