From 1df42bf028f0fdba772667093d3b79e9b39c5af9 Mon Sep 17 00:00:00 2001 From: Philip Dukhov Date: Mon, 13 Feb 2023 15:43:20 +0700 Subject: [PATCH] add cause to exception constructor --- .../io/github/centrifugal/centrifuge/ConfigurationError.java | 1 + .../main/java/io/github/centrifugal/centrifuge/RefreshError.java | 1 + .../github/centrifugal/centrifuge/SubscriptionRefreshError.java | 1 + .../centrifugal/centrifuge/SubscriptionSubscribeError.java | 1 + .../io/github/centrifugal/centrifuge/SubscriptionTokenError.java | 1 + .../main/java/io/github/centrifugal/centrifuge/TokenError.java | 1 + .../java/io/github/centrifugal/centrifuge/UnclassifiedError.java | 1 + 7 files changed, 7 insertions(+) diff --git a/centrifuge/src/main/java/io/github/centrifugal/centrifuge/ConfigurationError.java b/centrifuge/src/main/java/io/github/centrifugal/centrifuge/ConfigurationError.java index 0d5ab55..ce2ac90 100644 --- a/centrifuge/src/main/java/io/github/centrifugal/centrifuge/ConfigurationError.java +++ b/centrifuge/src/main/java/io/github/centrifugal/centrifuge/ConfigurationError.java @@ -5,6 +5,7 @@ public class ConfigurationError extends Throwable { ConfigurationError(Throwable error) { this.error = error; + this.initCause(error); } public Throwable getError() { diff --git a/centrifuge/src/main/java/io/github/centrifugal/centrifuge/RefreshError.java b/centrifuge/src/main/java/io/github/centrifugal/centrifuge/RefreshError.java index 3889964..1848c2a 100644 --- a/centrifuge/src/main/java/io/github/centrifugal/centrifuge/RefreshError.java +++ b/centrifuge/src/main/java/io/github/centrifugal/centrifuge/RefreshError.java @@ -5,6 +5,7 @@ public class RefreshError extends Throwable { RefreshError(Throwable error) { this.error = error; + this.initCause(error); } public Throwable getError() { diff --git a/centrifuge/src/main/java/io/github/centrifugal/centrifuge/SubscriptionRefreshError.java b/centrifuge/src/main/java/io/github/centrifugal/centrifuge/SubscriptionRefreshError.java index c1a9a64..54a1935 100644 --- a/centrifuge/src/main/java/io/github/centrifugal/centrifuge/SubscriptionRefreshError.java +++ b/centrifuge/src/main/java/io/github/centrifugal/centrifuge/SubscriptionRefreshError.java @@ -5,6 +5,7 @@ public class SubscriptionRefreshError extends Throwable { SubscriptionRefreshError(Throwable error) { this.error = error; + this.initCause(error); } public Throwable getError() { diff --git a/centrifuge/src/main/java/io/github/centrifugal/centrifuge/SubscriptionSubscribeError.java b/centrifuge/src/main/java/io/github/centrifugal/centrifuge/SubscriptionSubscribeError.java index cd424ad..184b9cd 100644 --- a/centrifuge/src/main/java/io/github/centrifugal/centrifuge/SubscriptionSubscribeError.java +++ b/centrifuge/src/main/java/io/github/centrifugal/centrifuge/SubscriptionSubscribeError.java @@ -5,6 +5,7 @@ public class SubscriptionSubscribeError extends Throwable { SubscriptionSubscribeError(Throwable error) { this.error = error; + this.initCause(error); } public Throwable getError() { diff --git a/centrifuge/src/main/java/io/github/centrifugal/centrifuge/SubscriptionTokenError.java b/centrifuge/src/main/java/io/github/centrifugal/centrifuge/SubscriptionTokenError.java index 6686cad..978619f 100644 --- a/centrifuge/src/main/java/io/github/centrifugal/centrifuge/SubscriptionTokenError.java +++ b/centrifuge/src/main/java/io/github/centrifugal/centrifuge/SubscriptionTokenError.java @@ -5,6 +5,7 @@ public class SubscriptionTokenError extends Throwable { SubscriptionTokenError(Throwable error) { this.error = error; + this.initCause(error); } public Throwable getError() { diff --git a/centrifuge/src/main/java/io/github/centrifugal/centrifuge/TokenError.java b/centrifuge/src/main/java/io/github/centrifugal/centrifuge/TokenError.java index 300709a..832d284 100644 --- a/centrifuge/src/main/java/io/github/centrifugal/centrifuge/TokenError.java +++ b/centrifuge/src/main/java/io/github/centrifugal/centrifuge/TokenError.java @@ -5,6 +5,7 @@ public class TokenError extends Throwable { TokenError(Throwable error) { this.error = error; + this.initCause(error); } public Throwable getError() { diff --git a/centrifuge/src/main/java/io/github/centrifugal/centrifuge/UnclassifiedError.java b/centrifuge/src/main/java/io/github/centrifugal/centrifuge/UnclassifiedError.java index ae4158a..e94f11e 100644 --- a/centrifuge/src/main/java/io/github/centrifugal/centrifuge/UnclassifiedError.java +++ b/centrifuge/src/main/java/io/github/centrifugal/centrifuge/UnclassifiedError.java @@ -5,6 +5,7 @@ public class UnclassifiedError extends Throwable { UnclassifiedError(Throwable error) { this.error = error; + this.initCause(error); } public Throwable getError() {