Skip to content

Commit b702f09

Browse files
throw an exception when host is not found
1 parent 4536f71 commit b702f09

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎src/main/java/org/scribe/model/Response.java‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
import java.net.*;
55
import java.util.*;
66

7+
import org.scribe.exceptions.*;
78
import org.scribe.utils.*;
89

910
/**
@@ -31,8 +32,7 @@ public class Response
3132
}
3233
catch (UnknownHostException e)
3334
{
34-
code = 404;
35-
body = Response.EMPTY;
35+
throw new OAuthException("The IP address of a host could not be determined.", e);
3636
}
3737
}
3838

0 commit comments

Comments
 (0)