public class ParseException extends Exception
By first collecting as many ParseError
instances as possible, this permits to provide good insights
of what is wrong with the input provided by the user.
Modifier and Type | Method and Description |
---|---|
static ParseException |
create(List<ParseError> errors)
Creates a new exception based on the list of errors.
|
List<ParseError> |
getErrors()
Provides a list of all errors and warnings which occurred
|
String |
toString() |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
public static ParseException create(List<ParseError> errors)
errors
- the errors which occurred while processing the user inputpublic List<ParseError> getErrors()
Copyright © 2020. All rights reserved.