X-Git-Url: http://jaekl.net/gitweb/?p=frank.git;a=blobdiff_plain;f=prod%2Fnet%2Fjaekl%2Fqd%2Fhttp%2FInvalidResponseException.java;fp=prod%2Fnet%2Fjaekl%2Fqd%2Fhttp%2FInvalidResponseException.java;h=525772e4627789dc2e72b4c650c20f1e8f180419;hp=0000000000000000000000000000000000000000;hb=d870b8b1ca2e633b0f2b58969cc042888d07db6e;hpb=07c8e189128f4fb3be7f49db75b48cf9e2e3de6e diff --git a/prod/net/jaekl/qd/http/InvalidResponseException.java b/prod/net/jaekl/qd/http/InvalidResponseException.java new file mode 100644 index 0000000..525772e --- /dev/null +++ b/prod/net/jaekl/qd/http/InvalidResponseException.java @@ -0,0 +1,25 @@ +package net.jaekl.qd.http; + +import net.jaekl.qd.QDException; + +public class InvalidResponseException extends QDException { + private static final long serialVersionUID = 1L; + + String m_url; + String m_method; + + public InvalidResponseException(String url, String method, Throwable cause) { + super(cause); + + m_url = url; + m_method = method; + } + + public String getUrl() { return m_url; } + public String getMethod() { return m_method; } + + @Override + public String toString() { + return getClass().getName() + "; " + m_url + "/" + m_method; + } +}