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 Details

    • NatsClientException

      public NatsClientException(String message)
      Creates a new exception.
      Parameters:
      message - The message
    • NatsClientException

      public NatsClientException(String message, List<io.nats.client.Message> messages)
      Creates a new exception.
      Parameters:
      message - The message
      messages - The messages that failed to send
    • NatsClientException

      public NatsClientException(String message, Throwable cause)
      Creates a new exception.
      Parameters:
      message - The message
      cause - The cause
    • NatsClientException

      public NatsClientException(String message, Throwable cause, List<io.nats.client.Message> messages)
      Creates a new exception.
      Parameters:
      message - The message
      cause - The cause
      messages - The messages that failed to send