Package org.openstreetmap.josm.io
Enum ChangesetClosedException.Source
- java.lang.Object
-
- java.lang.Enum<ChangesetClosedException.Source>
-
- org.openstreetmap.josm.io.ChangesetClosedException.Source
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<ChangesetClosedException.Source>
- Enclosing class:
- ChangesetClosedException
public static enum ChangesetClosedException.Source extends java.lang.Enum<ChangesetClosedException.Source>
Identifies when the changeset exception occurred.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CLOSE_CHANGESET
The exception was thrown when we tried to close a changeset.UNSPECIFIED
Unspecified sourceUPDATE_CHANGESET
The exception was thrown when a changeset was updated.UPLOAD_DATA
The exception was thrown when data was uploaded to the changeset.
-
Constructor Summary
Constructors Modifier Constructor Description private
Source()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ChangesetClosedException.Source
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static ChangesetClosedException.Source[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
UPDATE_CHANGESET
public static final ChangesetClosedException.Source UPDATE_CHANGESET
The exception was thrown when a changeset was updated. This most likely means that the changeset was closed before.
-
UPLOAD_DATA
public static final ChangesetClosedException.Source UPLOAD_DATA
The exception was thrown when data was uploaded to the changeset. This most likely means that the servers capability limits for a changeset have been exceeded.
-
CLOSE_CHANGESET
public static final ChangesetClosedException.Source CLOSE_CHANGESET
The exception was thrown when we tried to close a changeset. Probably the changeset already timed out on the server.- Since:
- 18283
-
UNSPECIFIED
public static final ChangesetClosedException.Source UNSPECIFIED
Unspecified source
-
-
Constructor Detail
-
Source
private Source()
-
-
Method Detail
-
values
public static ChangesetClosedException.Source[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ChangesetClosedException.Source c : ChangesetClosedException.Source.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ChangesetClosedException.Source valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-