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