org.eclipse.paho.client.mqttv3.internal
Class ExceptionHelper

java.lang.Object
  extended by org.eclipse.paho.client.mqttv3.internal.ExceptionHelper

public class ExceptionHelper
extends Object

Utility class to help create exceptions of the correct type.


Constructor Summary
ExceptionHelper()
           
 
Method Summary
static MqttException createMqttException(int reasonCode)
           
static MqttException createMqttException(Throwable cause)
           
static boolean isClassAvailable(String className)
          Returns whether or not the specified class is available to the current class loader.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExceptionHelper

public ExceptionHelper()
Method Detail

createMqttException

public static MqttException createMqttException(int reasonCode)

createMqttException

public static MqttException createMqttException(Throwable cause)

isClassAvailable

public 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.



Copyright © 2013. All Rights Reserved.