From a427779a8a6004f8980e30ac1bff93eabde42dd1 Mon Sep 17 00:00:00 2001 From: Daniel Nordhoff-Vergien Date: Fri, 3 Feb 2017 13:48:29 +0100 Subject: [PATCH] Add exception classes to Timesheet example they are used in "hand-written" code --- .../timesheet/BusinessException.java | 41 +++++++++++++++++++ .../timesheet/TechnicalException.java | 41 +++++++++++++++++++ 2 files changed, 82 insertions(+) create mode 100644 VaadinatorExample/Timesheet/src/main/java/de/akquinet/engineering/vaadinator/timesheet/BusinessException.java create mode 100644 VaadinatorExample/Timesheet/src/main/java/de/akquinet/engineering/vaadinator/timesheet/TechnicalException.java diff --git a/VaadinatorExample/Timesheet/src/main/java/de/akquinet/engineering/vaadinator/timesheet/BusinessException.java b/VaadinatorExample/Timesheet/src/main/java/de/akquinet/engineering/vaadinator/timesheet/BusinessException.java new file mode 100644 index 0000000..4486ca7 --- /dev/null +++ b/VaadinatorExample/Timesheet/src/main/java/de/akquinet/engineering/vaadinator/timesheet/BusinessException.java @@ -0,0 +1,41 @@ +/* + * Copyright 2017 Daniel Nordhoff-Vergien + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not + * use this file except in compliance with the License. You may obtain a copy of + * the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the + * License for the specific language governing permissions and limitations under + * the License. + */ +package de.akquinet.engineering.vaadinator.timesheet; + +public class BusinessException extends RuntimeException { + + /** + * + */ + private static final long serialVersionUID = 1L; + + public BusinessException() { + super(); + } + + public BusinessException(String message) { + super(message); + } + + public BusinessException(Throwable cause) { + super(cause); + } + + public BusinessException(String message, Throwable cause) { + super(message, cause); + } + +} diff --git a/VaadinatorExample/Timesheet/src/main/java/de/akquinet/engineering/vaadinator/timesheet/TechnicalException.java b/VaadinatorExample/Timesheet/src/main/java/de/akquinet/engineering/vaadinator/timesheet/TechnicalException.java new file mode 100644 index 0000000..6a25ed2 --- /dev/null +++ b/VaadinatorExample/Timesheet/src/main/java/de/akquinet/engineering/vaadinator/timesheet/TechnicalException.java @@ -0,0 +1,41 @@ +/* + * Copyright 2017 Daniel Nordhoff-Vergien + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not + * use this file except in compliance with the License. You may obtain a copy of + * the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the + * License for the specific language governing permissions and limitations under + * the License. + */ +package de.akquinet.engineering.vaadinator.timesheet; + +public class TechnicalException extends RuntimeException { + + /** + * + */ + private static final long serialVersionUID = 1L; + + public TechnicalException() { + super(); + } + + public TechnicalException(String message) { + super(message); + } + + public TechnicalException(Throwable cause) { + super(cause); + } + + public TechnicalException(String message, Throwable cause) { + super(message, cause); + } + +}