Module com.github.rvesse.airline
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 resultvoid
Handlers an error
-
Constructor Details
-
FailFast
public FailFast()
-
-
Method Details
-
handleError
Description copied from interface:ParserErrorHandler
Handlers an error- Specified by:
handleError
in interfaceParserErrorHandler
- Parameters:
e
- Error
-
finished
Description copied from interface:ParserErrorHandler
Prepares the parser result- Specified by:
finished
in interfaceParserErrorHandler
- Parameters:
state
- Parser state- Returns:
- Parser result
-