vertx / io.vertx.reactivex.core / Future / fail

fail

open fun fail(cause: Throwable): Unit

Set the failure. Any handler will be called, if there is one, and the future will be marked as completed.

Parameters

cause - the failure cause

open fun fail(failureMessage: String): Unit

Try to set the failure. When it happens, any handler will be called, if there is one, and the future will be marked as completed.

Parameters

failureMessage - the failure message