Package io.micronaut.nats.exception
Class NatsClientException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
io.micronaut.messaging.exceptions.MessagingException
io.micronaut.messaging.exceptions.MessagingClientException
io.micronaut.nats.exception.NatsClientException
- All Implemented Interfaces:
Serializable
public class NatsClientException
extends io.micronaut.messaging.exceptions.MessagingClientException
Exception thrown when an error occurs publishing a Nats message.
- Since:
- 1.0.0
- Author:
- jgrimm
- See Also:
-
Constructor Summary
ConstructorDescriptionNatsClientException
(String message) Creates a new exception.NatsClientException
(String message, Throwable cause) Creates a new exception.NatsClientException
(String message, Throwable cause, List<io.nats.client.Message> messages) Creates a new exception.NatsClientException
(String message, List<io.nats.client.Message> messages) Creates a new exception. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
NatsClientException
Creates a new exception.- Parameters:
message
- The message
-
NatsClientException
Creates a new exception.- Parameters:
message
- The messagemessages
- The messages that failed to send
-
NatsClientException
Creates a new exception.- Parameters:
message
- The messagecause
- The cause
-
NatsClientException
Creates a new exception.- Parameters:
message
- The messagecause
- The causemessages
- The messages that failed to send
-