1 19 20 package com.sslexplorer.tunnels; 21 22 import com.sslexplorer.core.CoreException; 23 24 25 31 public class TunnelException extends CoreException { 32 35 public final static int REMOTE_TUNNEL_IN_USE = 1; 36 37 40 public final static int REMOTE_TUNNEL_LOCKED = 2; 41 42 45 public final static int PORT_ALREADY_IN_USE = 3; 46 47 51 public final static int INTERNAL_ERROR = 4; 52 53 56 public final static int AGENT_REFUSED_LOCAL_TUNNEL = 5; 57 58 61 public final static int AGENT_REFUSED_LOCAL_TUNNEL_STOP = 6; 62 63 66 public final static String ERROR_CATEGORY = "tunnels"; 67 68 73 public TunnelException(int code) { 74 super(code, ERROR_CATEGORY); 75 } 76 77 87 public TunnelException(int code, Throwable cause, String arg0, String arg1, String arg2, String arg3) { 88 super(code, ERROR_CATEGORY, TunnelPlugin.MESSAGE_RESOURCES_KEY, cause, arg0, arg1, arg2, arg3); 89 } 90 91 98 public TunnelException(int code,Throwable cause, String arg0) { 99 super(code, ERROR_CATEGORY, TunnelPlugin.MESSAGE_RESOURCES_KEY, cause, arg0); 100 } 101 102 109 public TunnelException(int code, Throwable cause) { 110 super(code, ERROR_CATEGORY, TunnelPlugin.MESSAGE_RESOURCES_KEY, cause); 111 } 112 113 119 public TunnelException(int code, String arg0) { 120 super(code, ERROR_CATEGORY, arg0); 121 } 122 } 123 | Popular Tags |