Class DuplicateKeyException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.snakeyaml.engine.v2.exceptions.YamlEngineException
-
- org.snakeyaml.engine.v2.exceptions.MarkedYamlEngineException
-
- org.snakeyaml.engine.v2.exceptions.ConstructorException
-
- org.snakeyaml.engine.v2.exceptions.DuplicateKeyException
-
- All Implemented Interfaces:
java.io.Serializable
public class DuplicateKeyException extends ConstructorException
Indicate duplicate keys in the same mapping during parsing- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DuplicateKeyException(java.util.Optional<Mark> contextMark, java.lang.Object key, java.util.Optional<Mark> problemMark)
Create
-
Method Summary
-
Methods inherited from class org.snakeyaml.engine.v2.exceptions.MarkedYamlEngineException
getContext, getContextMark, getMessage, getProblem, getProblemMark, toString
-
-
-
-
Constructor Detail
-
DuplicateKeyException
public DuplicateKeyException(java.util.Optional<Mark> contextMark, java.lang.Object key, java.util.Optional<Mark> problemMark)
Create- Parameters:
contextMark
- - the context locationkey
- - the data used as key more than once in the same mappingproblemMark
- - the problem location
-
-