KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > net > killingar > forum > internal > AccessDeniedException


1 /**
2 /* Copyright 2000-2005 Anders Hovmöller
3  *
4  * The person or persons who have associated their work with
5  * this document (the "Dedicator") hereby dedicate the entire
6  * copyright in the work of authorship identified below (the
7  * "Work") to the public domain.
8  *
9  * Dedicator makes this dedication for the benefit of the
10  * public at large and to the detriment of Dedicator's heirs
11  * and successors. Dedicator intends this dedication to be an
12  * overt act of relinquishment in perpetuity of all present
13  * and future rights under copyright law, whether vested or
14  * contingent, in the Work. Dedicator understands that such
15  * relinquishment of all rights includes the relinquishment of
16  * all rights to enforce (by lawsuit or otherwise) those
17  * copyrights in the Work.
18  *
19  * Dedicator recognizes that, once placed in the public
20  * domain, the Work may be freely reproduced, distributed,
21  * transmitted, used, modified, built upon, or otherwise
22  * exploited by anyone for any purpose, commercial or non-
23  * commercial, and in any way, including by methods that have
24  * not yet been invented or conceived.
25  */

26
27 /**
28  * Thrown when a user has attempted an operation he/she has no access to.
29  */

30 package net.killingar.forum.internal;
31
32
33 public class AccessDeniedException extends Exception JavaDoc
34 {
35     public AccessDeniedException(String JavaDoc description)
36     {
37         super(description);
38     }
39
40     public AccessDeniedException(String JavaDoc description, long userID)
41     {
42         super(description+" (userID: "+userID+")");
43     }
44 }
Popular Tags