Class DuplicateContentException

All Implemented Interfaces:
Serializable

public class DuplicateContentException extends ComposerException
This exception is used to indicate duplicate definitions were found.
Since:
5.0
Author:
O. Kerpershoek
See Also:
  • Constructor Details

    • DuplicateContentException

      public DuplicateContentException(ElementType type, String name)
      Constructs the exception with the type and name of the element that was already present.
      Parameters:
      type - The type of the duplicate element.
      name - The name of the duplicate element.
  • Method Details

    • getType

      public ElementType getType()
      This method returns the type of the duplicate element.
      Returns:
      the type of the duplicate element.
    • getName

      public String getName()
      This method returns the name of the duplicate element.
      Returns:
      The name of the duplicate element.