-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
af160c5
commit 606476f
Showing
3 changed files
with
39 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,30 @@ | ||
package uk.ac.exeter.QuinCe.web; | ||
|
||
/** | ||
* Exception class for miscellaneous errors in beans | ||
* Exception class for miscellaneous errors in beans. | ||
*/ | ||
@SuppressWarnings("serial") | ||
public class BeanException extends Exception { | ||
|
||
/** | ||
* Constructor for a basic error with just a message. | ||
* | ||
* @param message | ||
* The error message. | ||
*/ | ||
public BeanException(String message) { | ||
super(message); | ||
} | ||
|
||
/** | ||
* Constructor for an error with a message and an underlying cause. | ||
* | ||
* @param message | ||
* The error message. | ||
* @param cause | ||
* The underlying cause. | ||
*/ | ||
public BeanException(String message, Throwable cause) { | ||
super(message, cause); | ||
} | ||
|
||
} |