1 7 8 package java.net; 9 10 import java.io.IOException ; 11 12 21 public 22 class HttpRetryException extends IOException { 23 24 private int responseCode; 25 private String location; 26 27 34 public HttpRetryException(String detail, int code) { 35 super(detail); 36 responseCode = code; 37 } 38 39 47 public HttpRetryException(String detail, int code, String location) { 48 super (detail); 49 responseCode = code; 50 this.location = location; 51 } 52 53 58 public int responseCode() { 59 return responseCode; 60 } 61 62 68 public String getReason() { 69 return super.getMessage(); 70 } 71 72 78 public String getLocation() { 79 return location; 80 } 81 } 82 | Popular Tags |