Package io.hekate.messaging
Class MessageQueueOverflowException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- io.hekate.core.HekateException
-
- io.hekate.messaging.MessagingException
-
- io.hekate.messaging.MessageQueueOverflowException
-
- All Implemented Interfaces:
Serializable
public class MessageQueueOverflowException extends MessagingException
SignalsMessagingChannel
's send queue overflow.This error is thrown by a
MessagingChannel
when its send queue size goes above thehigh watermark
andMessagingOverflowPolicy.FAIL
isbeing used
.
-
-
Constructor Summary
Constructors Constructor Description MessageQueueOverflowException(String message)
Constructs a new instance with the specified error message.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HekateException
forkFromAsync()
Forks this exception by creating a new exception that has this instance as its cause.-
Methods inherited from class io.hekate.core.HekateException
findCause, isCausedBy
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
MessageQueueOverflowException
public MessageQueueOverflowException(String message)
Constructs a new instance with the specified error message.- Parameters:
message
- The error message.
-
-
Method Detail
-
forkFromAsync
public HekateException forkFromAsync()
Description copied from class:HekateException
Forks this exception by creating a new exception that has this instance as its cause.The primary use case of this method is to re-throw exceptions from asynchronous contexts (f.e. exceptions thrown by
Future.get()
method).- Overrides:
forkFromAsync
in classMessagingException
- Returns:
- Fork of this exception.
-
-