001// License: GPL. For details, see LICENSE file. 002package org.openstreetmap.josm.gui.help; 003 004public class HelpContentReaderException extends Exception { 005 private int responseCode; 006 007 public HelpContentReaderException(String message, Throwable cause) { 008 super(message, cause); 009 } 010 011 public HelpContentReaderException(String message) { 012 super(message); 013 } 014 015 public HelpContentReaderException(Throwable cause) { 016 super(cause); 017 } 018 019 /** 020 * Replies the HTTP response code related to the wiki access exception. 021 * If no HTTP response code is available, 0 is replied. 022 * 023 * @return the http response code 024 */ 025 public int getResponseCode() { 026 return responseCode; 027 } 028 029 /** 030 * Sets the HTTP response code 031 * 032 * @param responseCode the response code 033 */ 034 public void setResponseCode(int responseCode) { 035 this.responseCode = responseCode; 036 } 037}