public class ExceptionDialogUtil
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static void |
explainAuthenticationFailed(org.openstreetmap.josm.io.OsmApiException e)
Explains a
OsmApiException which was thrown because the authentication at
the OSM server failed |
static void |
explainAuthorizationFailed(org.openstreetmap.josm.io.OsmApiException e)
Explains a
OsmApiException which was thrown because accessing a protected
resource was forbidden. |
static void |
explainBadRequest(org.openstreetmap.josm.io.OsmApiException e)
Explains a
OsmApiException which was thrown because of a bad
request |
static void |
explainBandwidthLimitExceeded(org.openstreetmap.josm.io.OsmApiException e)
Explains a
OsmApiException which was thrown because of a
bandwidth limit (HTTP 509) |
static void |
explainChangesetClosedException(org.openstreetmap.josm.io.ChangesetClosedException e)
handles a ChangesetClosedException
|
static void |
explainClientTimeout(org.openstreetmap.josm.io.OsmApiException e)
Explains a
OsmApiException which was thrown because of a
client timeout (HTTP 408) |
static void |
explainConflict(org.openstreetmap.josm.io.OsmApiException e)
Explains a
OsmApiException which was thrown because of a conflict |
static void |
explainException(java.lang.Exception e)
Explains an
Exception to the user. |
static void |
explainGeneric(java.lang.Exception e)
Explains an exception with a generic message dialog
|
static void |
explainGenericHttpException(org.openstreetmap.josm.io.OsmApiException e)
Explains a
OsmApiException with a generic error
message. |
static void |
explainGoneForUnknownPrimitive(org.openstreetmap.josm.io.OsmApiException e)
explains the case of an error due to a delete request on an already deleted
OsmPrimitive, i.e. |
static void |
explainInternalServerError(org.openstreetmap.josm.io.OsmTransferException e)
Explains a
OsmApiException which was thrown because of an internal server
error in the OSM API server. |
static void |
explainMissingOAuthAccessTokenException(org.openstreetmap.josm.io.MissingOAuthAccessTokenException e)
Explains a
OsmApiException which was thrown because accessing a protected
resource was forbidden. |
static void |
explainNestedIllegalDataException(org.openstreetmap.josm.io.OsmTransferException e)
Explains a
IllegalDataException which has caused an OsmTransferException. |
static void |
explainNestedInvocationTargetException(java.lang.Exception e)
Explains a
InvocationTargetException |
static void |
explainNestedIOException(org.openstreetmap.josm.io.OsmTransferException e)
Explains a
IOException which has caused an OsmTransferException. |
static void |
explainNestedSocketException(org.openstreetmap.josm.io.OsmTransferException e)
Explains a
SocketException which has caused an OsmTransferException. |
static void |
explainNestedUnkonwnHostException(org.openstreetmap.josm.io.OsmTransferException e)
Explains a
UnknownHostException which has caused an OsmTransferException. |
static void |
explainNotFound(org.openstreetmap.josm.io.OsmApiException e)
Explains a
OsmApiException which was thrown because a resource wasn't found
on the server |
static void |
explainOsmApiInitializationException(org.openstreetmap.josm.io.OsmApiInitializationException e)
handles an exception caught during OSM API initialization
|
static void |
explainOsmTransferException(org.openstreetmap.josm.io.OsmTransferException e)
Explains an
OsmTransferException to the user. |
static void |
explainPreconditionFailed(org.openstreetmap.josm.io.OsmApiException e)
Explains an upload error due to a violated precondition, i.e.
|
static void |
explainSecurityException(org.openstreetmap.josm.io.OsmTransferException e)
Explains a
SecurityException which has caused an OsmTransferException. |
protected static <T> T |
getNestedException(java.lang.Exception e,
java.lang.Class<T> nestedClass)
Replies the first nested exception of type
nestedClass (including
the root exception e) or null, if no such exception is found. |
public static void explainOsmApiInitializationException(org.openstreetmap.josm.io.OsmApiInitializationException e)
e - the exceptionpublic static void explainChangesetClosedException(org.openstreetmap.josm.io.ChangesetClosedException e)
e - the exceptionpublic static void explainPreconditionFailed(org.openstreetmap.josm.io.OsmApiException e)
e - the exceptionpublic static void explainGeneric(java.lang.Exception e)
e - the exceptionpublic static void explainSecurityException(org.openstreetmap.josm.io.OsmTransferException e)
SecurityException which has caused an OsmTransferException.
This is most likely happening when user tries to access the OSM API from within an
applet which wasn't loaded from the API server.e - the exceptionpublic static void explainNestedSocketException(org.openstreetmap.josm.io.OsmTransferException e)
SocketException which has caused an OsmTransferException.
This is most likely because there's not connection to the Internet or because
the remote server is not reachable.e - the exceptionpublic static void explainNestedIOException(org.openstreetmap.josm.io.OsmTransferException e)
IOException which has caused an OsmTransferException.
This is most likely happening when the communication with the remote server is
interrupted for any reason.e - the exceptionpublic static void explainNestedIllegalDataException(org.openstreetmap.josm.io.OsmTransferException e)
IllegalDataException which has caused an OsmTransferException.
This is most likely happening when JOSM tries to load data in in an unsupported format.e - the exceptionpublic static void explainNestedInvocationTargetException(java.lang.Exception e)
InvocationTargetExceptione - the exceptionpublic static void explainInternalServerError(org.openstreetmap.josm.io.OsmTransferException e)
OsmApiException which was thrown because of an internal server
error in the OSM API server.e - the exceptionpublic static void explainBadRequest(org.openstreetmap.josm.io.OsmApiException e)
OsmApiException which was thrown because of a bad
requeste - the exceptionpublic static void explainNotFound(org.openstreetmap.josm.io.OsmApiException e)
OsmApiException which was thrown because a resource wasn't found
on the servere - the exceptionpublic static void explainConflict(org.openstreetmap.josm.io.OsmApiException e)
OsmApiException which was thrown because of a conflicte - the exceptionpublic static void explainAuthenticationFailed(org.openstreetmap.josm.io.OsmApiException e)
OsmApiException which was thrown because the authentication at
the OSM server failede - the exceptionpublic static void explainAuthorizationFailed(org.openstreetmap.josm.io.OsmApiException e)
OsmApiException which was thrown because accessing a protected
resource was forbidden.e - the exceptionpublic static void explainClientTimeout(org.openstreetmap.josm.io.OsmApiException e)
OsmApiException which was thrown because of a
client timeout (HTTP 408)e - the exceptionpublic static void explainBandwidthLimitExceeded(org.openstreetmap.josm.io.OsmApiException e)
OsmApiException which was thrown because of a
bandwidth limit (HTTP 509)e - the exceptionpublic static void explainGenericHttpException(org.openstreetmap.josm.io.OsmApiException e)
OsmApiException with a generic error
message.e - the exceptionpublic static void explainMissingOAuthAccessTokenException(org.openstreetmap.josm.io.MissingOAuthAccessTokenException e)
OsmApiException which was thrown because accessing a protected
resource was forbidden.e - the exceptionpublic static void explainNestedUnkonwnHostException(org.openstreetmap.josm.io.OsmTransferException e)
UnknownHostException which has caused an OsmTransferException.
This is most likely happening when there is an error in the API URL or when
local DNS services are not working.e - the exceptionprotected static <T> T getNestedException(java.lang.Exception e,
java.lang.Class<T> nestedClass)
nestedClass (including
the root exception e) or null, if no such exception is found.T - e - the root exceptionnestedClass - the type of the nested exceptionnestedClass (including
the root exception e) or null, if no such exception is found.public static void explainOsmTransferException(org.openstreetmap.josm.io.OsmTransferException e)
OsmTransferException to the user.e - the OsmTransferExceptionpublic static void explainGoneForUnknownPrimitive(org.openstreetmap.josm.io.OsmApiException e)
OsmPrimitive, i.e. a HTTP response code 410, where we don't know which
OsmPrimitive is causing the error.e - the exceptionpublic static void explainException(java.lang.Exception e)
Exception to the user.e - the Exception