-
public class ExceptionHelperUtility class to help create exceptions of the correct type.
-
-
Method Summary
Modifier and Type Method Description static MqttExceptioncreateMqttException(int reasonCode)static MqttExceptioncreateMqttException(Throwable cause)static booleanisClassAvailable(String className)Returns whether or not the specified class is available to the current class loader. -
-
Method Detail
-
createMqttException
static MqttException createMqttException(int reasonCode)
-
createMqttException
static MqttException createMqttException(Throwable cause)
-
isClassAvailable
static boolean isClassAvailable(String className)
Returns whether or not the specified class is available to the current class loader. This is used to protect the code against using Java SE APIs on Java ME.
-
-
-
-