Interceptor class for checking network connection.
The application context.
Intercepts the chain and checks for network connection. If there is no connection, it throws an IOException. Otherwise, it proceeds with the chain.