Package com.oorian.html
Class ElementException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.oorian.html.ElementException
- All Implemented Interfaces:
Serializable
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 Summary
ConstructorsConstructorDescriptionElementException(String tagName, String elementId, Throwable thrwbl) Creates a new ElementException with the specified tag name, element ID, and cause. -
Method Summary
Modifier and TypeMethodDescriptionReturns the unique ID of the element that caused the exception.Returns the HTML tag name of the element that caused the exception.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ElementException
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
Returns the HTML tag name of the element that caused the exception.- Returns:
- The tag name.
-
getElementId
Returns the unique ID of the element that caused the exception.- Returns:
- The element ID.
-