Class HtmlParseException

All Implemented Interfaces:
Serializable

public final class HtmlParseException extends IOException
Exception thrown when an HTML string could not be parsed.
Since:
8.3.0
Author:
XIMA MEDIA GmbH
See Also:
  • Constructor Details

    • HtmlParseException

      public HtmlParseException(String message, Throwable cause)
      Creates a new exception with the given message and cause. This should be used when an unexpected error occurred and no more details on the parse errors are available.
      Parameters:
      message - The message with details on the error.
      cause - The underlying cause of the error.
    • HtmlParseException

      public HtmlParseException(String message, List<String> errors)
      Creates a new exception with the given message and list of parse errors.
      Parameters:
      message - The message with details on the error.
      errors - The list of parse errors.
  • Method Details

    • getErrors

      public List<String> getErrors()
      Gets the list of parse errors that occurred during the parsing of the HTML.
      Returns:
      The list of parse errors.