package org.eclipse.paho.mqttv5.common;

/* JADX INFO: loaded from: classes2.dex */
public class ExceptionHelper {
    public static MqttException createMqttException(int i) {
        return new MqttException(i);
    }

    public static MqttException createMqttException(Throwable th) {
        return new MqttException(th);
    }

    public static boolean isClassAvailable(String str) {
        try {
            Class.forName(str);
            return true;
        } catch (ClassNotFoundException unused) {
            return false;
        }
    }

    private ExceptionHelper() {
    }
}
