use of EmployeeDefs.AEmployeeException.ConnectionFailure in project SmartCity-Market by TechnionYP5777.
the class ManageCatalogProductDetailsTab method renameIngrPressed.
void renameIngrPressed() {
long id = ingredients.get(selectedIngr.iterator().next()).getId();
try {
manager.editIngredient(new Ingredient(id, renameIngrLbl.getText()));
} catch (InvalidParameter | CriticalError | EmployeeNotConnected | ConnectionFailure | ParamIDDoesNotExist e) {
log.debug(StackTraceUtil.getStackTrace(e));
log.fatal(e);
e.showInfoToUser();
}
selectedIngr.clear();
createIngredientList();
enableButtons();
enableAddButtons();
}
use of EmployeeDefs.AEmployeeException.ConnectionFailure in project SmartCity-Market by TechnionYP5777.
the class ManageCatalogProductDetailsTab method addManuPressed.
void addManuPressed() {
try {
manager.addManufacturer(new Manufacturer(0, newManu.getText()));
} catch (InvalidParameter | CriticalError | EmployeeNotConnected | ConnectionFailure | ParamIDAlreadyExists e) {
log.fatal(e);
log.debug(StackTraceUtil.getStackTrace(e));
e.showInfoToUser();
}
selectedManu.clear();
createManufacturerList();
enableButtons();
enableAddButtons();
}
Aggregations