It would be easier for the client to handle the exceptions if we derive the `APIException` from the `IOException`.