String addrStr = null;
try {
addrStr = mNetd.clatdStart(baseIface, mNat64Prefix.toString());
- } catch (RemoteException | IllegalStateException e) {
- Slog.e(TAG, "Error starting clatd on " + baseIface, e);
+ } catch (RemoteException | ServiceSpecificException e) {
+ Slog.e(TAG, "Error starting clatd on " + baseIface + ": " + e);
}
mIface = CLAT_PREFIX + baseIface;
mBaseIface = baseIface;
try {
mNMService.unregisterObserver(this);
} catch (RemoteException | IllegalStateException e) {
- Slog.e(TAG, "Error unregistering clatd observer on " + mBaseIface, e);
+ Slog.e(TAG, "Error unregistering clatd observer on " + mBaseIface + ": " + e);
}
mIface = null;
mBaseIface = null;
Slog.i(TAG, "Stopping clatd on " + mBaseIface);
try {
mNetd.clatdStop(mBaseIface);
- } catch (RemoteException | IllegalStateException e) {
- Slog.e(TAG, "Error stopping clatd on " + mBaseIface, e);
+ } catch (RemoteException | ServiceSpecificException e) {
+ Slog.e(TAG, "Error stopping clatd on " + mBaseIface + ": " + e);
}
String iface = mIface;
mNetd.resolverStartPrefix64Discovery(getNetId());
mState = State.DISCOVERING;
} catch (RemoteException | ServiceSpecificException e) {
- Slog.e(TAG, "Error starting prefix discovery on netId " + getNetId(), e);
+ Slog.e(TAG, "Error starting prefix discovery on netId " + getNetId() + ": " + e);
}
}
try {
mNetd.resolverStopPrefix64Discovery(getNetId());
} catch (RemoteException | ServiceSpecificException e) {
- Slog.e(TAG, "Error stopping prefix discovery on netId " + getNetId(), e);
+ Slog.e(TAG, "Error stopping prefix discovery on netId " + getNetId() + ": " + e);
}
}