Class UnknownElementException

All Implemented Interfaces:
Serializable

public class UnknownElementException extends ComposerException
Composer exception that is used to notify the usage of an invalid element name and type combination.
Since:
5.0
Author:
O. Kerpershoek
See Also:
  • Constructor Details

    • UnknownElementException

      public UnknownElementException(ElementType type, String contentName)
      Constructs an exception for an invalid name and type combination.
      Parameters:
      type - Element type that was not valid in combination with the name.
      contentName - Name of the element that was not valid in combination with the type.
  • Method Details

    • getElementType

      public ElementType getElementType()
      Returns the element type of the name and type combination that was not valid.
      Returns:
      The element type of the name and type combination that was not valid.
    • getElementName

      public String getElementName()
      Returns the element name of the name and type combination that was not valid.
      Returns:
      The element name of the name and type combination that was not valid.