Class NoSuchClientIdException

  • All Implemented Interfaces:
    java.io.Serializable

    public class NoSuchClientIdException
    extends java.lang.Exception
    This exception is used to signal that a given MQTT ClientId is unknown to the broker in the given context.
    Since:
    4.0.0
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      NoSuchClientIdException​(@NotNull java.lang.String clientId)
      Creates a new NoSuchClientException that will not contain a stacktrace.
      NoSuchClientIdException​(@NotNull java.lang.String clientId, boolean fillInStacktrace)
      Creates a new NoSuchClientException.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      @NotNull java.lang.Throwable fillInStackTrace()  
      @NotNull java.lang.String getClientId()
      Returns the unknown MQTT ClientId.
      • Methods inherited from class java.lang.Throwable

        addSuppressed, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • NoSuchClientIdException

        public NoSuchClientIdException​(@NotNull java.lang.String clientId,
                                       boolean fillInStacktrace)
        Creates a new NoSuchClientException.
        Parameters:
        clientId - The not available MQTT ClientId.
        fillInStacktrace - Whether the created exception should fill in a stacktrace
        Since:
        4.0.0
      • NoSuchClientIdException

        public NoSuchClientIdException​(@NotNull java.lang.String clientId)
        Creates a new NoSuchClientException that will not contain a stacktrace.
        Parameters:
        clientId - The not available MQTT ClientId.
        Since:
        4.0.0
    • Method Detail

      • fillInStackTrace

        public @NotNull java.lang.Throwable fillInStackTrace()
        Overrides:
        fillInStackTrace in class java.lang.Throwable
      • getClientId

        public @NotNull java.lang.String getClientId()
        Returns the unknown MQTT ClientId.
        Returns:
        The not available MQTT ClientId.
        Since:
        4.0.0