Class FailFast
java.lang.Object
com.github.rvesse.airline.parser.errors.handlers.FailFast
- All Implemented Interfaces:
ParserErrorHandler
An error handler which fails as soon as a parser error is encountered
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> ParseResult<T> finished(ParseState<T> state) Prepares the parser resultvoidHandlers an error
-
Constructor Details
-
FailFast
public FailFast()
-
-
Method Details
-
handleError
Description copied from interface:ParserErrorHandlerHandlers an error- Specified by:
handleErrorin interfaceParserErrorHandler- Parameters:
e- Error
-
finished
Description copied from interface:ParserErrorHandlerPrepares the parser result- Specified by:
finishedin interfaceParserErrorHandler- Parameters:
state- Parser state- Returns:
- Parser result
-