Package org.openstreetmap.josm.gui.help
Class HelpContentReaderException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- org.openstreetmap.josm.gui.help.HelpContentReaderException
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
MissingHelpContentException
public class HelpContentReaderException extends Exception
Exception thrown when a problem occurs during help contents fetching.- Since:
- 2308
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private int
responseCode
-
Constructor Summary
Constructors Constructor Description HelpContentReaderException(String message, int responseCode)
Constructs a newHelpContentReaderException
.HelpContentReaderException(Throwable cause, int responseCode)
Constructs a newHelpContentReaderException
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getResponseCode()
Replies the HTTP response code related to the wiki access exception.-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Field Detail
-
responseCode
private final int responseCode
-
-
Constructor Detail
-
HelpContentReaderException
public HelpContentReaderException(String message, int responseCode)
Constructs a newHelpContentReaderException
.- Parameters:
message
- the detail message. The detail message is saved for later retrieval by theThrowable.getMessage()
method.responseCode
- HTTP response code related to the wiki access exception (0 if not applicable)
-
HelpContentReaderException
public HelpContentReaderException(Throwable cause, int responseCode)
Constructs a newHelpContentReaderException
.- Parameters:
cause
- the cause (which is saved for later retrieval by theThrowable.getCause()
method). (Anull
value is permitted, and indicates that the cause is nonexistent or unknown.)responseCode
- HTTP response code related to the wiki access exception (0 if not applicable)
-
-
Method Detail
-
getResponseCode
public final int getResponseCode()
Replies the HTTP response code related to the wiki access exception. If no HTTP response code is available, 0 is replied.- Returns:
- the http response code
-
-