1 38 package com.gargoylesoftware.htmlunit; 39 40 46 public class FailingHttpStatusCodeException extends RuntimeException { 47 private static final long serialVersionUID = 4080165207084775250L; 48 49 private final int statusCode_; 50 private final String statusMessage_; 51 52 53 59 public FailingHttpStatusCodeException( final int statusCode, final String statusMessage ) { 60 super( "" + statusCode + " " + statusMessage ); 61 62 statusCode_ = statusCode; 63 statusMessage_ = statusMessage; 64 } 65 66 67 72 public int getStatusCode() { 73 return statusCode_; 74 } 75 76 77 82 public String getStatusMessage() { 83 return statusMessage_; 84 } 85 } 86 87 | Popular Tags |