aboutsummaryrefslogtreecommitdiff
path: root/src/org/jivesoftware/smack/proxy/ProxyException.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/org/jivesoftware/smack/proxy/ProxyException.java')
-rw-r--r--src/org/jivesoftware/smack/proxy/ProxyException.java44
1 files changed, 44 insertions, 0 deletions
diff --git a/src/org/jivesoftware/smack/proxy/ProxyException.java b/src/org/jivesoftware/smack/proxy/ProxyException.java
new file mode 100644
index 0000000..b37910c
--- /dev/null
+++ b/src/org/jivesoftware/smack/proxy/ProxyException.java
@@ -0,0 +1,44 @@
+/**
+ * $RCSfile$
+ * $Revision$
+ * $Date$
+ *
+ * All rights reserved. Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.jivesoftware.smack.proxy;
+
+import java.io.IOException;
+
+/**
+ * An exception class to handle exceptions caused by proxy.
+ *
+ * @author Atul Aggarwal
+ */
+public class ProxyException
+ extends IOException
+{
+ public ProxyException(ProxyInfo.ProxyType type, String ex, Throwable cause)
+ {
+ super("Proxy Exception " + type.toString() + " : "+ex+", "+cause);
+ }
+
+ public ProxyException(ProxyInfo.ProxyType type, String ex)
+ {
+ super("Proxy Exception " + type.toString() + " : "+ex);
+ }
+
+ public ProxyException(ProxyInfo.ProxyType type)
+ {
+ super("Proxy Exception " + type.toString() + " : " + "Unknown Error");
+ }
+}