Android Open Source - anokicert Gjokii Exception






From Project

Back to project page anokicert.

License

The source code is released under:

GNU General Public License

If you think the Android project anokicert listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

/*
 *  This file is part of Gjokii./*from  ww w  .jav  a2s. c  om*/
 *
 *  Gjokii is free software: you can redistribute it and/or modify
 *  it under the terms of the GNU Lesser General Public License as published by
 *  the Free Software Foundation, either version 3 of the License, or
 *  (at your option) any later version.
 *
 *  Gjokii is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU Lesser General Public License for more details.
 *
 *  You should have received a copy of the GNU Lesser General Public License
 *  along with Gjokii.  If not, see <http://www.gnu.org/licenses/>.
 */
package net.tuxed.gjokii;

import java.io.IOException;

public class GjokiiException extends IOException {

  private static final long serialVersionUID = 5336560319846071336L;

  public static final int UNKNOWN_ERROR = 0;
  public static final int CONNECTION_PROBLEM = 1;
  public static final int INVALID_CERT_FILE = 2;

  private final int errorCode;

  public GjokiiException() {
    this(UNKNOWN_ERROR);
  }

  public GjokiiException(final int errorCode) {
    this(errorCode, null, null);
  }

  public GjokiiException(final int errorCode, final String string) {
    this(errorCode, string, null);
  }

  public GjokiiException(final int errorCode, final String message, final Throwable cause) {
    super(message, cause);
    this.errorCode = errorCode;
  }

  public GjokiiException(final int errorCode, final Throwable cause) {
    this(errorCode, null, cause);
  }

  public GjokiiException(final String detailMessage) {
    this(UNKNOWN_ERROR, detailMessage);
  }

  public GjokiiException(final String message, final Throwable cause) {
    this(UNKNOWN_ERROR, message, cause);
  }

  public GjokiiException(final Throwable cause) {
    this(UNKNOWN_ERROR, cause);
  }

  public int getErrorCode() {
    return errorCode;
  }
}




Java Source Code List

net.tuxed.gjokii.DirectoryEntryInfo.java
net.tuxed.gjokii.GjokiiException.java
net.tuxed.gjokii.Gjokii.java
net.tuxed.misc.Utils.java
net.tuxed.nokicert.CertListParser.java
net.tuxed.nokicert.CertParser.java
net.tuxed.nokicert.NokiCertUtils.java
net.tuxed.nokicert.NokiCert.java
org.mariotaku.anokicert.Constants.java
org.mariotaku.anokicert.activity.DeviceCertListActivity.java
org.mariotaku.anokicert.activity.DeviceSelectorActivity.java
org.mariotaku.anokicert.activity.FilePickerActivity.java
org.mariotaku.anokicert.activity.MainActivity.java
org.mariotaku.anokicert.adapter.ArrayAdapter.java
org.mariotaku.anokicert.adapter.BluetoothDevicesListAdapter.java
org.mariotaku.anokicert.adapter.DeviceCertListAdapter.java
org.mariotaku.anokicert.fragment.AlertDialogFragment.java
org.mariotaku.anokicert.fragment.BluetoothUnsupportedDialogFragment.java
org.mariotaku.anokicert.fragment.StackTraceDialogFragment.java
org.mariotaku.anokicert.util.ArrayUtils.java
org.mariotaku.anokicert.util.AsyncNokiCertWrapper.java
org.mariotaku.anokicert.util.Utils.java
org.mariotaku.anokicert.view.MainLinearLayout.java