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 resultvoid
handleError(ParseException e)
Handlers an error
-
-
-
Method Detail
-
handleError
public void handleError(ParseException e)
Description copied from interface:ParserErrorHandler
Handlers an error- Specified by:
handleError
in interfaceParserErrorHandler
- Parameters:
e
- Error
-
finished
public <T> ParseResult<T> finished(ParseState<T> state)
Description copied from interface:ParserErrorHandler
Prepares the parser result- Specified by:
finished
in interfaceParserErrorHandler
- Parameters:
state
- Parser state- Returns:
- Parser result
-
-