| Modifier and Type | Method and Description |
|---|---|
static <T> Function<Throwable,Mono<T>> |
convert(String format,
Object... args)
|
static <T> Mono<T> |
illegalState(String format,
Object... args)
Returns a
Mono containing an IllegalStateException with the configured message |
public static <T> Function<Throwable,Mono<T>> convert(String format, Object... args)
Throwables to more descriptive exception types, attaching the original Throwable as the new cause.
T - the type of the Mono being convertedformat - A format stringargs - Arguments referenced by the format specifiers in the format string. If there are more arguments than format specifiers, the extra arguments are ignored. The number of arguments
is variable and may be zero. The maximum number of arguments is limited by the maximum dimension of a Java array as defined by The Java™ Virtual Machine
Specification. The behaviour on a null argument depends on the conversion.public static <T> Mono<T> illegalState(String format, Object... args)
Mono containing an IllegalStateException with the configured messageT - the type of the Mono being convertedformat - A format stringargs - Arguments referenced by the format specifiers in the format string. If there are more arguments than format specifiers, the extra arguments are ignored. The number of arguments
is variable and may be zero. The maximum number of arguments is limited by the maximum dimension of a Java array as defined by The Java™ Virtual Machine
Specification. The behaviour on a null argument depends on the conversion.Mono containing the errorCopyright © 2016 Pivotal Software, Inc.. All rights reserved.