Code example for CertificateException

Methods: getMessage, printStackTrace

0
                sharedPreferenceEditor = sharedPrefs.edit();
 
                httpHelper = HTTPHelper.getInstance(mContext, false); // Third party server is a non-secure server.
            } 
        } catch (CertificateException e) {
            Log.e(LOGTAG, "GCMIntentService : init : " + e.getMessage());
            e.printStackTrace();
        } catch (UnrecoverableKeyException e) {
            Log.e(LOGTAG, "GCMIntentService : init : " + e.getMessage());
            e.printStackTrace();
        } catch (NoSuchAlgorithmException e) {
            Log.e(LOGTAG, "GCMIntentService : init : " + e.getMessage());
            e.printStackTrace();
        } catch (IOException e) {
            Log.e(LOGTAG, "GCMIntentService : init : " + e.getMessage());
            e.printStackTrace();
        } catch (KeyManagementException e) {
            Log.e(LOGTAG, "GCMIntentService : init : " + e.getMessage());
            e.printStackTrace();
        } catch (KeyStoreException e) {
            Log.e(LOGTAG, "GCMIntentService : init : " + e.getMessage());