Class 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 java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • DuplicateKeyException

        public DuplicateKeyException​(java.util.Optional<Mark> contextMark,
                                     java.lang.Object key,
                                     java.util.Optional<Mark> problemMark)
        Create
        Parameters:
        contextMark - - the context location
        key - - the data used as key more than once in the same mapping
        problemMark - - the problem location