maybeOfError

fun <T> maybeOfError(error: Throwable): Maybe<T>

Returns a Maybe that signals the specified error via onError.

Please refer to the corresponding RxJava document.