tuweni / org.apache.tuweni.scuttlebutt.rpc / RPCMessage / getException

getException

fun getException(objectMapper: ObjectMapper!): Optional<RPCRequestFailedException!>! (source)

Gets exception from object mapper.

Parameters

objectMapper - ObjectMapper!: the object mapper to deserialize the error with.

Return
Optional<RPCRequestFailedException!>!: an exception if this represents an error RPC response, otherwise nothing