| Modifier and Type | Method and Description |
|---|---|
static <T> Mono<T> |
illegalArgument(String format,
Object... args)
Returns a
Mono containing an IllegalArgumentException with the configured message |
static <T> Mono<T> |
illegalState(String format,
Object... args)
Returns a
Mono containing an IllegalStateException with the configured message |
static Predicate<? super Throwable> |
statusCode(int code)
A predicate that return
true if the exception is a CloudFoundryException and its code matches |
public static <T> Mono<T> illegalArgument(String format, Object... args)
Mono containing an IllegalArgumentException 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 errorpublic 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 errorpublic static Predicate<? super Throwable> statusCode(int code)
true if the exception is a CloudFoundryException and its code matchescode - the code to matchtrue if the exception is a CloudFoundryException and its code matchesCopyright © 2016 Pivotal Software, Inc.. All rights reserved.