KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > nemesis > forum > exception > AlreadyExistsException


1
2 package org.nemesis.forum.exception;
3
4 /**
5  * Thrown when a record is attempted to be created that duplicates
6  * previously created unique object information.
7  */

8 public class AlreadyExistsException extends ForumException {
9
10     
11     /**
12      * Constructor for UserAlreadyExistsException.
13      */

14     public AlreadyExistsException() {
15         super();
16     }
17
18     /**
19      * Constructor for UserAlreadyExistsException.
20      * @param message
21      */

22     public AlreadyExistsException(String JavaDoc message) {
23         super(message);
24     }
25
26     /**
27      * Constructor for UserAlreadyExistsException.
28      * @param message
29      * @param cause
30      */

31     public AlreadyExistsException(String JavaDoc message, Throwable JavaDoc cause) {
32         super(message, cause);
33     }
34
35     /**
36      * Constructor for UserAlreadyExistsException.
37      * @param cause
38      */

39     public AlreadyExistsException(Throwable JavaDoc cause) {
40         super(cause);
41     }
42
43 }
44
Popular Tags