diff --git a/tgbotapi.core/dev.inmo.tgbotapi.bot.exceptions/-bot-exception/index.html b/tgbotapi.core/dev.inmo.tgbotapi.bot.exceptions/-bot-exception/index.html index c78df3b814..fdacaa9edb 100644 --- a/tgbotapi.core/dev.inmo.tgbotapi.bot.exceptions/-bot-exception/index.html +++ b/tgbotapi.core/dev.inmo.tgbotapi.bot.exceptions/-bot-exception/index.html @@ -145,7 +145,7 @@
-
fun Throwable.causedCancellationException(): CancellationException?
+
fun Throwable.causedCancellationException(): CancellationException?

Traverses this throwable's cause chain to find a CancellationException.

@@ -175,7 +175,7 @@
- +

Checks whether this throwable (or any of its causes) is a CancellationException.

diff --git a/tgbotapi.core/dev.inmo.tgbotapi.bot.exceptions/-common-bot-exception/index.html b/tgbotapi.core/dev.inmo.tgbotapi.bot.exceptions/-common-bot-exception/index.html index 3c6305e883..8106c42c85 100644 --- a/tgbotapi.core/dev.inmo.tgbotapi.bot.exceptions/-common-bot-exception/index.html +++ b/tgbotapi.core/dev.inmo.tgbotapi.bot.exceptions/-common-bot-exception/index.html @@ -164,7 +164,7 @@
-
fun Throwable.causedCancellationException(): CancellationException?
+
fun Throwable.causedCancellationException(): CancellationException?

Traverses this throwable's cause chain to find a CancellationException.

@@ -194,7 +194,7 @@
- +

Checks whether this throwable (or any of its causes) is a CancellationException.

diff --git a/tgbotapi.core/dev.inmo.tgbotapi.bot.exceptions/-common-request-exception/index.html b/tgbotapi.core/dev.inmo.tgbotapi.bot.exceptions/-common-request-exception/index.html index eed49c26d0..c0d5a03a56 100644 --- a/tgbotapi.core/dev.inmo.tgbotapi.bot.exceptions/-common-request-exception/index.html +++ b/tgbotapi.core/dev.inmo.tgbotapi.bot.exceptions/-common-request-exception/index.html @@ -194,7 +194,7 @@
-
fun Throwable.causedCancellationException(): CancellationException?
+
fun Throwable.causedCancellationException(): CancellationException?

Traverses this throwable's cause chain to find a CancellationException.

@@ -224,7 +224,7 @@
- +

Checks whether this throwable (or any of its causes) is a CancellationException.

diff --git a/tgbotapi.core/dev.inmo.tgbotapi.bot.exceptions/-get-updates-conflict/index.html b/tgbotapi.core/dev.inmo.tgbotapi.bot.exceptions/-get-updates-conflict/index.html index 1533b71ecf..a3db7cbc83 100644 --- a/tgbotapi.core/dev.inmo.tgbotapi.bot.exceptions/-get-updates-conflict/index.html +++ b/tgbotapi.core/dev.inmo.tgbotapi.bot.exceptions/-get-updates-conflict/index.html @@ -194,7 +194,7 @@
-
fun Throwable.causedCancellationException(): CancellationException?
+
fun Throwable.causedCancellationException(): CancellationException?

Traverses this throwable's cause chain to find a CancellationException.

@@ -224,7 +224,7 @@
- +

Checks whether this throwable (or any of its causes) is a CancellationException.

diff --git a/tgbotapi.core/dev.inmo.tgbotapi.bot.exceptions/-invalid-photo-dimensions-exception/index.html b/tgbotapi.core/dev.inmo.tgbotapi.bot.exceptions/-invalid-photo-dimensions-exception/index.html index 483c5dca79..69736c0c5b 100644 --- a/tgbotapi.core/dev.inmo.tgbotapi.bot.exceptions/-invalid-photo-dimensions-exception/index.html +++ b/tgbotapi.core/dev.inmo.tgbotapi.bot.exceptions/-invalid-photo-dimensions-exception/index.html @@ -194,7 +194,7 @@
-
fun Throwable.causedCancellationException(): CancellationException?
+
fun Throwable.causedCancellationException(): CancellationException?

Traverses this throwable's cause chain to find a CancellationException.

@@ -224,7 +224,7 @@
- +

Checks whether this throwable (or any of its causes) is a CancellationException.

diff --git a/tgbotapi.core/dev.inmo.tgbotapi.bot.exceptions/-message-is-not-modified-exception/index.html b/tgbotapi.core/dev.inmo.tgbotapi.bot.exceptions/-message-is-not-modified-exception/index.html index 3858f5b098..2877f20774 100644 --- a/tgbotapi.core/dev.inmo.tgbotapi.bot.exceptions/-message-is-not-modified-exception/index.html +++ b/tgbotapi.core/dev.inmo.tgbotapi.bot.exceptions/-message-is-not-modified-exception/index.html @@ -194,7 +194,7 @@
-
fun Throwable.causedCancellationException(): CancellationException?
+
fun Throwable.causedCancellationException(): CancellationException?

Traverses this throwable's cause chain to find a CancellationException.

@@ -224,7 +224,7 @@
- +

Checks whether this throwable (or any of its causes) is a CancellationException.

diff --git a/tgbotapi.core/dev.inmo.tgbotapi.bot.exceptions/-message-to-edit-not-found-exception/index.html b/tgbotapi.core/dev.inmo.tgbotapi.bot.exceptions/-message-to-edit-not-found-exception/index.html index 94b0031b5a..df1cc63188 100644 --- a/tgbotapi.core/dev.inmo.tgbotapi.bot.exceptions/-message-to-edit-not-found-exception/index.html +++ b/tgbotapi.core/dev.inmo.tgbotapi.bot.exceptions/-message-to-edit-not-found-exception/index.html @@ -194,7 +194,7 @@
-
fun Throwable.causedCancellationException(): CancellationException?
+
fun Throwable.causedCancellationException(): CancellationException?

Traverses this throwable's cause chain to find a CancellationException.

@@ -224,7 +224,7 @@
- +

Checks whether this throwable (or any of its causes) is a CancellationException.

diff --git a/tgbotapi.core/dev.inmo.tgbotapi.bot.exceptions/-reply-message-not-found-exception/index.html b/tgbotapi.core/dev.inmo.tgbotapi.bot.exceptions/-reply-message-not-found-exception/index.html index 5aaadb04d0..5a023988f5 100644 --- a/tgbotapi.core/dev.inmo.tgbotapi.bot.exceptions/-reply-message-not-found-exception/index.html +++ b/tgbotapi.core/dev.inmo.tgbotapi.bot.exceptions/-reply-message-not-found-exception/index.html @@ -194,7 +194,7 @@
-
fun Throwable.causedCancellationException(): CancellationException?
+
fun Throwable.causedCancellationException(): CancellationException?

Traverses this throwable's cause chain to find a CancellationException.

@@ -224,7 +224,7 @@
- +

Checks whether this throwable (or any of its causes) is a CancellationException.

diff --git a/tgbotapi.core/dev.inmo.tgbotapi.bot.exceptions/-request-exception/index.html b/tgbotapi.core/dev.inmo.tgbotapi.bot.exceptions/-request-exception/index.html index ae241fba8b..3b6d5e3291 100644 --- a/tgbotapi.core/dev.inmo.tgbotapi.bot.exceptions/-request-exception/index.html +++ b/tgbotapi.core/dev.inmo.tgbotapi.bot.exceptions/-request-exception/index.html @@ -175,7 +175,7 @@
-
fun Throwable.causedCancellationException(): CancellationException?
+
fun Throwable.causedCancellationException(): CancellationException?

Traverses this throwable's cause chain to find a CancellationException.

@@ -205,7 +205,7 @@
- +

Checks whether this throwable (or any of its causes) is a CancellationException.

diff --git a/tgbotapi.core/dev.inmo.tgbotapi.bot.exceptions/-too-much-requests-exception/index.html b/tgbotapi.core/dev.inmo.tgbotapi.bot.exceptions/-too-much-requests-exception/index.html index dba741155e..e24dd7b20d 100644 --- a/tgbotapi.core/dev.inmo.tgbotapi.bot.exceptions/-too-much-requests-exception/index.html +++ b/tgbotapi.core/dev.inmo.tgbotapi.bot.exceptions/-too-much-requests-exception/index.html @@ -209,7 +209,7 @@
-
fun Throwable.causedCancellationException(): CancellationException?
+
fun Throwable.causedCancellationException(): CancellationException?

Traverses this throwable's cause chain to find a CancellationException.

@@ -239,7 +239,7 @@
- +

Checks whether this throwable (or any of its causes) is a CancellationException.

diff --git a/tgbotapi.core/dev.inmo.tgbotapi.bot.exceptions/-unauthorized-exception/index.html b/tgbotapi.core/dev.inmo.tgbotapi.bot.exceptions/-unauthorized-exception/index.html index c966f6d470..88e1dd6e68 100644 --- a/tgbotapi.core/dev.inmo.tgbotapi.bot.exceptions/-unauthorized-exception/index.html +++ b/tgbotapi.core/dev.inmo.tgbotapi.bot.exceptions/-unauthorized-exception/index.html @@ -194,7 +194,7 @@
-
fun Throwable.causedCancellationException(): CancellationException?
+
fun Throwable.causedCancellationException(): CancellationException?

Traverses this throwable's cause chain to find a CancellationException.

@@ -224,7 +224,7 @@
- +

Checks whether this throwable (or any of its causes) is a CancellationException.

diff --git a/tgbotapi.core/dev.inmo.tgbotapi.bot.exceptions/-wrong-file-identifier-exception/index.html b/tgbotapi.core/dev.inmo.tgbotapi.bot.exceptions/-wrong-file-identifier-exception/index.html index 994a2345ed..2fb57d4f9f 100644 --- a/tgbotapi.core/dev.inmo.tgbotapi.bot.exceptions/-wrong-file-identifier-exception/index.html +++ b/tgbotapi.core/dev.inmo.tgbotapi.bot.exceptions/-wrong-file-identifier-exception/index.html @@ -194,7 +194,7 @@
-
fun Throwable.causedCancellationException(): CancellationException?
+
fun Throwable.causedCancellationException(): CancellationException?

Traverses this throwable's cause chain to find a CancellationException.

@@ -224,7 +224,7 @@
- +

Checks whether this throwable (or any of its causes) is a CancellationException.

diff --git a/tgbotapi.core/dev.inmo.tgbotapi.bot.ktor.middlewares/-telegram-bot-middleware/-result-absence/index.html b/tgbotapi.core/dev.inmo.tgbotapi.bot.ktor.middlewares/-telegram-bot-middleware/-result-absence/index.html index 401cde87c6..1c3f2d965d 100644 --- a/tgbotapi.core/dev.inmo.tgbotapi.bot.ktor.middlewares/-telegram-bot-middleware/-result-absence/index.html +++ b/tgbotapi.core/dev.inmo.tgbotapi.bot.ktor.middlewares/-telegram-bot-middleware/-result-absence/index.html @@ -145,7 +145,7 @@
-
fun Throwable.causedCancellationException(): CancellationException?
+
fun Throwable.causedCancellationException(): CancellationException?

Traverses this throwable's cause chain to find a CancellationException.

@@ -160,7 +160,7 @@
- +

Checks whether this throwable (or any of its causes) is a CancellationException.

diff --git a/tgbotapi.core/dev.inmo.tgbotapi.utils/caused-cancellation-exception.html b/tgbotapi.core/dev.inmo.tgbotapi.utils/caused-cancellation-exception.html index 69e4129bb2..7036f12aa1 100644 --- a/tgbotapi.core/dev.inmo.tgbotapi.utils/caused-cancellation-exception.html +++ b/tgbotapi.core/dev.inmo.tgbotapi.utils/caused-cancellation-exception.html @@ -95,7 +95,7 @@

causedCancellationException

-
fun Throwable.causedCancellationException(): CancellationException?
+
fun Throwable.causedCancellationException(): CancellationException?

Traverses this throwable's cause chain to find a CancellationException.

It walks through this and its causes until the first CancellationException is encountered, and returns that exception. If no CancellationException is found in the chain, returns null.

This is useful when you need to distinguish cancellations from other failures while handling errors.

Receiver

the root Throwable to inspect

Return

the first CancellationException found in the cause chain, or null if none present

-
fun Throwable.causedCancellationException(): CancellationException?
+
fun Throwable.causedCancellationException(): CancellationException?

Traverses this throwable's cause chain to find a CancellationException.

@@ -1004,7 +1004,7 @@
- +

Checks whether this throwable (or any of its causes) is a CancellationException.

diff --git a/tgbotapi.core/dev.inmo.tgbotapi.utils/is-caused-by-cancellation.html b/tgbotapi.core/dev.inmo.tgbotapi.utils/is-caused-by-cancellation.html index a5656a5d97..381a7ec370 100644 --- a/tgbotapi.core/dev.inmo.tgbotapi.utils/is-caused-by-cancellation.html +++ b/tgbotapi.core/dev.inmo.tgbotapi.utils/is-caused-by-cancellation.html @@ -95,7 +95,7 @@

isCausedByCancellation

-
+

Checks whether this throwable (or any of its causes) is a CancellationException.

Receiver

the Throwable to inspect

Return

true if a CancellationException is found in the cause chain, false otherwise