1 19 20 package com.sslexplorer.security; 21 22 import com.sslexplorer.core.CoreException; 23 24 25 31 public class ExtensionException extends CoreException { 32 35 public final static int NO_AGENT = 1; 36 37 40 public final static int AGENT_REFUSED_LAUNCH = 2; 41 42 45 public final static int FAILED_TO_LAUNCH = 3; 46 47 50 public final static int INVALID_EXTENSION = 4; 51 52 53 56 public static final int INTERNAL_ERROR = 5; 57 58 62 public static final int FAILED_TO_PARSE_DESCRIPTOR = 6; 63 64 68 public static final int UNKNOWN_EXTENSION_TYPE = 7; 69 70 73 public static final int FAILED_TO_PROCESS_DESCRIPTOR = 8; 74 75 79 public static final int INSUFFICIENT_SSLEXPLORER_HOST_VERSION = 9; 80 81 86 public static final int FAILED_TO_CREATE_PLUGIN_INSTANCE = 10; 87 88 93 public static final int INVALID_EXTENSION_BUNDLE_STATUS = 11; 94 95 98 public static final int UNKNOWN_PLUGIN = 12; 99 100 106 public static final int DEPENDENCY_NOT_INSTALLED = 13; 107 108 114 public static final int DEPENDENCY_NOT_STARTED = 14; 115 116 119 public static final int LICENSE_ERROR = 15; 120 121 124 public final static String ERROR_CATEGORY = "extensions"; 125 126 127 128 133 public ExtensionException(int code) { 134 super(code, ERROR_CATEGORY); 135 } 136 137 148 public ExtensionException(int code, String bundle, Throwable cause, String arg0, String arg1, String arg2, String arg3) { 149 super(code, ERROR_CATEGORY, bundle, cause, arg0, arg1, arg2, arg3); 150 } 151 152 160 public ExtensionException(int code,String bundle, Throwable cause, String arg0) { 161 super(code, ERROR_CATEGORY, bundle, cause, arg0); 162 } 163 164 171 public ExtensionException(int code, String bundle, Throwable cause) { 172 super(code, ERROR_CATEGORY, bundle, cause); 173 } 174 175 181 public ExtensionException(int code, String arg0) { 182 super(code, ERROR_CATEGORY, arg0); 183 } 184 185 192 public ExtensionException(int code, String arg0, String arg1) { 193 super(code, ERROR_CATEGORY, DEFAULT_BUNDLE, null, arg0, arg1, null, null); 194 } 195 196 202 public ExtensionException(int code, Throwable cause) { 203 super(code, ERROR_CATEGORY, DEFAULT_BUNDLE, cause, cause.getMessage()); 204 } 205 206 213 public ExtensionException(int code, Throwable cause, String arg0) { 214 super(code, ERROR_CATEGORY, DEFAULT_BUNDLE, cause, arg0); 215 } 216 217 226 public ExtensionException(int code, String arg0, String arg1, String arg2, Throwable cause) { 227 super(code, ERROR_CATEGORY, DEFAULT_BUNDLE, cause, arg0, arg1, arg2, null); 228 } 229 } 230 | Popular Tags |