Package org.openstreetmap.josm.data.osm
Class CyclicUploadDependencyException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- org.openstreetmap.josm.data.osm.CyclicUploadDependencyException
-
- All Implemented Interfaces:
java.io.Serializable
public class CyclicUploadDependencyException extends java.lang.Exception
This is an exception that is thrown if the user attempts to upload a list of relations with a cyclic dependency in them- Since:
- 12673 (moved from
action.upload
package) - See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CyclicUploadDependencyException(java.util.Stack<Relation> cycle)
Creates a newCyclicUploadDependencyException
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.String
formatRelation(Relation r)
java.util.List<Relation>
getCyclicUploadDependency()
Gets the cyclejava.lang.String
getMessage()
-
-
-
Constructor Detail
-
CyclicUploadDependencyException
public CyclicUploadDependencyException(java.util.Stack<Relation> cycle)
Creates a newCyclicUploadDependencyException
- Parameters:
cycle
- The cycle that was found
-
-
Method Detail
-
formatRelation
protected java.lang.String formatRelation(Relation r)
-
getMessage
public java.lang.String getMessage()
- Overrides:
getMessage
in classjava.lang.Throwable
-
getCyclicUploadDependency
public java.util.List<Relation> getCyclicUploadDependency()
Gets the cycle- Returns:
- The cycle that was detected
-
-