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:
java.io.Serializable
- Direct Known Subclasses:
MissingHelpContentException
public class HelpContentReaderException extends java.lang.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(java.lang.String message, int responseCode)
Constructs a newHelpContentReaderException
.HelpContentReaderException(java.lang.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.
-
-
-
Field Detail
-
responseCode
private final int responseCode
-
-
Constructor Detail
-
HelpContentReaderException
public HelpContentReaderException(java.lang.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(java.lang.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
-
-