This is the code I want to avoid repeating. If possible also try block.

```
try {
//
    } on TimeoutException catch (e) {
      log('Timeout Error: $e');
      rethrow;
    } on SocketException catch (e) {
      log('Socket Error: $e');
      rethrow;
    } on Error catch (e) {
      log('General Error: $e');
      rethrow;
    } catch (e) {
      log('All other Errors: $e');
      rethrow;
    }

```