Skip to content

Commit

Permalink
Merge pull request square#2239 from jaredsburrows/jb/make-httpexcepti…
Browse files Browse the repository at this point in the history
…on-unchecked

Make HttpException unchecked
  • Loading branch information
JakeWharton authored Mar 27, 2017
2 parents 39fcdb4 + db68075 commit 16b2a7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion retrofit/src/main/java/retrofit2/HttpException.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
package retrofit2;

/** Exception for an unexpected, non-2xx HTTP response. */
public class HttpException extends Exception {
public class HttpException extends RuntimeException {
private static String getMessage(Response<?> response) {
if (response == null) throw new NullPointerException("response == null");
return "HTTP " + response.code() + " " + response.message();
Expand Down

0 comments on commit 16b2a7f

Please sign in to comment.