Skip to content

Commit

Permalink
Make HttpException unchecked to allow the Exception to thrown in cust…
Browse files Browse the repository at this point in the history
…om CallAdapters
  • Loading branch information
jaredsburrows committed Mar 7, 2017
1 parent 39fcdb4 commit db68075
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 db68075

Please sign in to comment.