Class ElementException

All Implemented Interfaces:
Serializable

public class ElementException extends RuntimeException
Exception thrown when an error occurs during element processing.

This runtime exception wraps errors that occur during the element lifecycle (creation, initialization, rendering) and includes the tag name and element ID to aid debugging.

Since:
2007
Version:
1.0
Author:
Marvin P. Warble Jr.
See Also:
  • Constructor Details

    • ElementException

      public ElementException(String tagName, String elementId, Throwable thrwbl)
      Creates a new ElementException with the specified tag name, element ID, and cause.
      Parameters:
      tagName - The HTML tag name of the element that caused the exception.
      elementId - The unique ID of the element that caused the exception.
      thrwbl - The underlying cause of this exception.
  • Method Details

    • getTagName

      public String getTagName()
      Returns the HTML tag name of the element that caused the exception.
      Returns:
      The tag name.
    • getElementId

      public String getElementId()
      Returns the unique ID of the element that caused the exception.
      Returns:
      The element ID.