open static fun <T : Any> fail(failureCode: Int, message: String): AsyncResult<T>
Create a failed Future containing a ServiceException.
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.
failureCode - The failure code.
message - The failure message.
- The type of the AsyncResult.
Return
A failed Future containing the ServiceException.