public class ParserException extends RuntimeException
ParserException is the exception which is thrown if a parsing process fails. The problems occurred
during the parsing can be accessed with getProblems().| Constructor and Description |
|---|
ParserException()
Constructs a new
ParserException with no problems, a null error message and a
null cause. |
ParserException(List<Problem> problems)
Constructs a new
ParserException with the given problems, a error message constructed from the
problems list and a null cause. |
ParserException(String message)
Constructs a new
ParserException with no problems, the given error message and a null
cause. |
ParserException(String message,
List<Problem> problems)
Constructs a new
ParserException with the given problems, the given error message and a
null cause. |
ParserException(String message,
Throwable cause)
Constructs a new
ParserException with no problems, the given error message and the given cause. |
ParserException(Throwable cause)
Constructs a new
ParserException with no problems, a null error message and the given
cause. |
| Modifier and Type | Method and Description |
|---|---|
List<Problem> |
getProblems()
Get the problems occurred during a parsing process.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic ParserException()
ParserException with no problems, a null error message and a
null cause.public ParserException(String message)
ParserException with no problems, the given error message and a null
cause.message - the error message of this exceptionpublic ParserException(Throwable cause)
ParserException with no problems, a null error message and the given
cause.cause - the cause of this exceptionpublic ParserException(String message, Throwable cause)
ParserException with no problems, the given error message and the given cause.message - the error message of this exceptioncause - the cause of this exceptionpublic ParserException(String message, List<Problem> problems)
ParserException with the given problems, the given error message and a
null cause.
Note that the problems list instance is not copied.
message - the error message of this exceptionproblems - the problems of this exceptionpublic List<Problem> getProblems()
null.Collections.unmodifiableList(List)Copyright © 2019 JBoss by Red Hat. All rights reserved.