我正在尝试使用AWS Api Gateway时处理InterruptedIOException。问题是我收到ApiClientException,其消息是
com.amazonaws.mobileconnectors.apigateway.ApiClientException: java.io.InterruptedIOException: thread interrupted (Service: null; Status Code: 0; Error Code: null; Request ID: null)
但是当我只想处理' InterruptedIOException '并让其他人忽略时。因此,我添加了条件'ex instanceof InterruptedIOException',但它没有进入此条件。