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

getException

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

Parameters

objectMapper - ObjectMapper!: the objectmatter to deserialize the error with.

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