Interface TryParser<R extends @NonNull Object,T extends @NonNull Object>

Type Parameters:
R - The raw type.
T - The parsed type.
All Superinterfaces:
BiFunction<CommandContext,R,Mono<TryParser.Result<R,T>>>, ParserFunction<R,TryParser.Result<R,T>>
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface TryParser<R extends @NonNull Object,T extends @NonNull Object> extends ParserFunction<R,TryParser.Result<R,T>>
A parser wrapper that tolerates errors by returning a result that reports either the parsed item or an encountered error.

This allows for the receiver of the argument to do their own handling of encountered errors rather than immediately stopping processing.

Since:
1.0
Version:
1.0