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:
Serializable
public class CyclicUploadDependencyException extends 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(Stack<Relation> cycle)
Creates a newCyclicUploadDependencyException
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected String
formatRelation(Relation r)
List<Relation>
getCyclicUploadDependency()
Gets the cycleString
getMessage()
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
CyclicUploadDependencyException
public CyclicUploadDependencyException(Stack<Relation> cycle)
Creates a newCyclicUploadDependencyException
- Parameters:
cycle
- The cycle that was found
-
-
Method Detail
-
formatRelation
protected String formatRelation(Relation r)
-
getMessage
public String getMessage()
- Overrides:
getMessage
in classThrowable
-
getCyclicUploadDependency
public List<Relation> getCyclicUploadDependency()
Gets the cycle- Returns:
- The cycle that was detected
-
-