Changeset 5386 in josm for trunk/src/org/openstreetmap/josm/io/OsmApiInitializationException.java
- Timestamp:
- 2012-07-31T21:48:49+02:00 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/io/OsmApiInitializationException.java
r3083 r5386 2 2 package org.openstreetmap.josm.io; 3 3 4 /** 5 * Exception thrown when a communication error occured with the OSM server during API initialization. 6 * @see OsmApi#initialize 7 */ 4 8 public class OsmApiInitializationException extends OsmTransferException { 5 9 6 public OsmApiInitializationException() { 7 super(); 8 } 9 10 public OsmApiInitializationException(String message, Throwable cause) { 11 super(message, cause); 12 } 13 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 */ 14 16 public OsmApiInitializationException(String message) { 15 17 super(message); 16 18 } 17 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 */ 18 28 public OsmApiInitializationException(Throwable cause) { 19 29 super(cause); 20 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 } 21 46 }
Note:
See TracChangeset
for help on using the changeset viewer.