use of com.genonbeta.TrebleShot.exception.DeviceNotFoundException in project TrebleShot by genonbeta.
the class TransferInstance method initialize.
protected void initialize(AccessDatabase database, int groupId) throws TransactionGroupNotFoundException, DeviceNotFoundException {
mGroup = new TransactionObject.Group(groupId);
try {
database.reconstruct(mGroup);
} catch (Exception e) {
throw new TransactionGroupNotFoundException();
}
mDevice = new NetworkDevice(mGroup.deviceId);
try {
database.reconstruct(mDevice);
} catch (Exception e) {
throw new DeviceNotFoundException();
}
}
Aggregations