Skip to content
Snippets Groups Projects
Commit ecd584ca authored by Harry Linrui XU's avatar Harry Linrui XU
Browse files

Changed back lamb to lam in food enums + added

code block inside catch block
parent 40b8d108
No related branches found
No related tags found
1 merge request!51Added javadoc to all methods
Pipeline #219222 passed
......@@ -128,16 +128,11 @@ public class MainMenuController {
generalBudget = loadBudgetDataFromFile(
"budgets/" + FileHandlingSelectedBudget
.readSelectedBudget("budgets/SelectedBudget") + "/Budget");
} catch (IOException ioe) {
overview = new Overview(incomeRegister, expenseRegister, generalBudget);
} catch (IOException | IllegalArgumentException ioe) {
ioe.printStackTrace();
Alert alert = new Alert(AlertType.ERROR);
alert.setTitle("Could not load register data");
alert.setHeaderText("Could not load register data");
alert.setContentText("There was an error loading in the registers");
alert.showAndWait();
showErrorDialogBox(ioe.getMessage(), ioe.getMessage(), ioe.getMessage());
}
overview = new Overview(incomeRegister, expenseRegister, generalBudget);
mainBar.setStyle("-fx-accent: rgb(48,215,106);");
......
......@@ -287,9 +287,9 @@ public enum FoodItem {
BROCCOLI("broccoli"),
/**
* Lamb
* Lam
*/
LAMB("lamb"),
LAM("lam"),
/**
* Sugar.
......
APRILnew
APRILsecond
APRILreasonable
APRILpåske
APRILels
APRILreasonable
APRILels
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment