Package de.xima.fc.common.dom
Class HtmlParseException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.io.IOException
-
- de.xima.fc.common.dom.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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description HtmlParseException(String message, Throwable cause)
Creates a new exception with the given message and cause.HtmlParseException(String message, List<String> errors)
Creates a new exception with the given message and list of parse errors.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<String>
getErrors()
Gets the list of parse errors that occurred during the parsing of the HTML.-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
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.
-
-