You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by bt...@apache.org on 2020/08/11 09:39:25 UTC

[james-project] 08/10: JAMES-3351 Add message to UnauthorizedException

This is an automated email from the ASF dual-hosted git repository.

btellier pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/james-project.git

commit 6004806957fd98ebb049ae0da7627143a92c2e87
Author: LanKhuat <dl...@linagora.com>
AuthorDate: Wed Jul 29 17:28:07 2020 +0700

    JAMES-3351 Add message to UnauthorizedException
---
 .../org/apache/james/jmap/exceptions/UnauthorizedException.java   | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/server/protocols/jmap/src/main/java/org/apache/james/jmap/exceptions/UnauthorizedException.java b/server/protocols/jmap/src/main/java/org/apache/james/jmap/exceptions/UnauthorizedException.java
index b9fd26a..b33853f 100644
--- a/server/protocols/jmap/src/main/java/org/apache/james/jmap/exceptions/UnauthorizedException.java
+++ b/server/protocols/jmap/src/main/java/org/apache/james/jmap/exceptions/UnauthorizedException.java
@@ -20,10 +20,12 @@
 package org.apache.james.jmap.exceptions;
 
 public class UnauthorizedException extends RuntimeException {
-    public UnauthorizedException() {
+
+    public UnauthorizedException(String message) {
+        super(message);
     }
 
-    public UnauthorizedException(Throwable cause) {
-        super(cause);
+    public UnauthorizedException(String message, Throwable throwable) {
+        super(message, throwable);
     }
 }


---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org