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