How to create a mock response or simulate socket timeout exception?

776 Views Asked by At

I am calling an external api and receiving a runtime exception for socket timeout. Is there a way I can recreate or mock simulate this socket timeout exception by creating a mock response.

0

There are 0 best solutions below