throw an exception when host is not found

This commit is contained in:
Pablo Fernandez committed 2012-03-04 20:56:33 -03:00
1 parent 4536f71188
commit b702f097a2
1 file changed
+2 -2
+2 -2
View File
@@ -4,6 +4,7 @@ import java.io.*;
import java.net.*;
import java.util.*;
import org.scribe.exceptions.*;
import org.scribe.utils.*;
/**
@@ -31,8 +32,7 @@ public class Response
}
catch (UnknownHostException e)
{
code = 404;
body = Response.EMPTY;
throw new OAuthException("The IP address of a host could not be determined.", e);
}
}