source: josm/trunk/src/org/openstreetmap/josm/io/OsmApiInitializationException.java@ 7236

Last change on this file since 7236 was 6070, checked in by stoecker, 11 years ago

see #8853 remove tabs, trailing spaces, windows line ends, strange characters

  • Property svn:eol-style set to native
File size: 2.0 KB
Line 
1// License: GPL. For details, see LICENSE file.
2package org.openstreetmap.josm.io;
3
4/**
5 * Exception thrown when a communication error occured with the OSM server during API initialization.
6 * @see OsmApi#initialize
7 */
8public class OsmApiInitializationException extends OsmTransferException {
9
10 /**
11 * Constructs an {@code OsmApiInitializationException} with the specified detail message.
12 * The cause is not initialized, and may subsequently be initialized by a call to {@link #initCause}.
13 *
14 * @param message The detail message (which is saved for later retrieval by the {@link #getMessage} method)
15 */
16 public OsmApiInitializationException(String message) {
17 super(message);
18 }
19
20 /**
21 * Constructs an {@code OsmApiInitializationException} with the specified cause and a detail message of
22 * <tt>(cause==null ? null : cause.toString())</tt>
23 * (which typically contains the class and detail message of <tt>cause</tt>).
24 *
25 * @param cause the cause (which is saved for later retrieval by the {@link #getCause} method).
26 * A <tt>null</tt> value is permitted, and indicates that the cause is nonexistent or unknown.
27 */
28 public OsmApiInitializationException(Throwable cause) {
29 super(cause);
30 }
31
32 /**
33 * Constructs an {@code OsmApiInitializationException} with the specified detail message and cause.
34 *
35 * <p> Note that the detail message associated with {@code cause} is <i>not</i> automatically incorporated
36 * into this exception's detail message.
37 *
38 * @param message The detail message (which is saved for later retrieval by the {@link #getMessage} method)
39 * @param cause The cause (which is saved for later retrieval by the {@link #getCause} method).
40 * A null value is permitted, and indicates that the cause is nonexistent or unknown.
41 *
42 */
43 public OsmApiInitializationException(String message, Throwable cause) {
44 super(message, cause);
45 }
46}
Note: See TracBrowser for help on using the repository browser.