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
Exception thrown when a problem occurs during help contents fetching.
- Since:
- 2308
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionHelpContentReaderException(String message, int responseCode) Constructs a newHelpContentReaderException.HelpContentReaderException(Throwable cause, int responseCode) Constructs a newHelpContentReaderException. -
Method Summary
Modifier and TypeMethodDescriptionfinal intReplies 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 Details
-
responseCode
-
-
Constructor Details
-
HelpContentReaderException
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
Constructs a newHelpContentReaderException.- Parameters:
cause- the cause (which is saved for later retrieval by theThrowable.getCause()method). (Anullvalue 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 Details
-
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
-