public class EsfMqttException
extends java.lang.Exception
Constructor and Description |
---|
EsfMqttException(EsfClientErrorCode esfClientErrorCode,
java.lang.Throwable cause,
java.lang.Object[] arguments)
Builds a new EsfMqttException instance based on the supplied MqttErrorCode, an optional Throwable cause, and optional arguments for the associated exception message.
|
Modifier and Type | Method and Description |
---|---|
EsfClientErrorCode |
getCode()
This method returns the client error code
|
java.lang.String |
getLocalizedMessage() |
java.lang.String |
getMessage() |
static EsfMqttException |
internalError(java.lang.String message)
Factory method to build an EdcClientException with the EdcClientErrorCode.INTERNAL_ERROR code providing only a message.
|
static EsfMqttException |
internalError(java.lang.Throwable cause,
java.lang.String message)
Factory method to build an EdcClientException with the EdcClientException.INTERNAL_ERROR code providing a cause and a message.
|
public EsfMqttException(EsfClientErrorCode esfClientErrorCode, java.lang.Throwable cause, java.lang.Object[] arguments)
esfClientErrorCode
- error code of Mqtt clientcause
- cause of the errorarguments
- Object
containing arguments of the exception messagepublic static EsfMqttException internalError(java.lang.Throwable cause, java.lang.String message)
cause
- cause of the client exceptionmessage
- messages associated with the exceptionEsfMqttException
public static EsfMqttException internalError(java.lang.String message)
message
- description of error messageEsfMqttException
public EsfClientErrorCode getCode()
EsfClientErrorCode
public java.lang.String getMessage()
getMessage
in class java.lang.Throwable
public java.lang.String getLocalizedMessage()
getLocalizedMessage
in class java.lang.Throwable
Copyright © 2009 Eurotech Inc. All rights reserved.