Skip to content

Commit

Permalink
Add exception classes to Timesheet example
Browse files Browse the repository at this point in the history
they are used in "hand-written" code
  • Loading branch information
dve committed Feb 3, 2017
1 parent f7b8de3 commit a427779
Show file tree
Hide file tree
Showing 2 changed files with 82 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -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);
}

}
Original file line number Diff line number Diff line change
@@ -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);
}

}

0 comments on commit a427779

Please sign in to comment.