vertx / io.vertx.serviceproxy / ServiceException / fail

fail

open static fun <T : Any> fail(failureCode: Int, message: String): AsyncResult<T>

Create a failed Future containing a ServiceException.

Parameters

failureCode - The failure code.

message - The failure message.

- The type of the AsyncResult.

Return
A failed Future containing the ServiceException.

open static fun <T : Any> fail(failureCode: Int, message: String, debugInfo: JsonObject): AsyncResult<T>

Create a failed Future containing a ServiceException.

Parameters

failureCode - The failure code.

message - The failure message.

debugInfo - The debug info.

- The type of the AsyncResult.

Return
A failed Future containing the ServiceException.