Class NoSuchClientIdException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.hivemq.extension.sdk.api.services.exception.NoSuchClientIdException
- All Implemented Interfaces:
Serializable
public class NoSuchClientIdException extends 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, CE 2019.1
- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description NoSuchClientIdException(@NotNull String clientId)Creates a new NoSuchClientException that will not contain a stacktrace.NoSuchClientIdException(@NotNull String clientId, boolean fillInStacktrace)Creates a new NoSuchClientException. -
Method Summary
Modifier and Type Method Description @NotNull ThrowablefillInStackTrace()@NotNull StringgetClientId()Returns the unknown MQTT ClientId.Methods inherited from class java.lang.Throwable
addSuppressed, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
NoSuchClientIdException
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, CE 2019.1
-
NoSuchClientIdException
Creates a new NoSuchClientException that will not contain a stacktrace.- Parameters:
clientId- The not available MQTT ClientId.- Since:
- 4.0.0, CE 2019.1
-
-
Method Details
-
fillInStackTrace
- Overrides:
fillInStackTracein classThrowable
-
getClientId
Returns the unknown MQTT ClientId.- Returns:
- The not available MQTT ClientId.
- Since:
- 4.0.0, CE 2019.1
-