KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jahia > services > acl > ACLNotFoundException


1 //
2
// ____.
3
// __/\ ______| |__/\. _______
4
// __ .____| | \ | +----+ \
5
// _______| /--| | | - \ _ | : - \_________
6
// \\______: :---| : : | : | \________>
7
// |__\---\_____________:______: :____|____:_____\
8
// /_____|
9
//
10
// . . . i n j a h i a w e t r u s t . . .
11
//
12

13
14 package org.jahia.services.acl;
15
16 import org.jahia.exceptions.JahiaException;
17
18 /**
19  * This exception is thrown when an ACL object is requested and is not
20  * present in the database.
21  *
22  * @author Fulco Houkes
23  * @version 2.0
24  */

25 public class ACLNotFoundException extends JahiaException {
26     /** Unique identification number of the ACL that could not be found. */
27     private int mAclID = -1;
28
29
30     //-------------------------------------------------------------------------
31
// Fulco 8 Jan. 2001
32
/**
33      * Default constructor
34      */

35     public ACLNotFoundException (int aclID) {
36         super ("Access Control List not found.",
37                 "ACL [" + aclID + "] could not be found.", ACL_ERROR, ERROR_SEVERITY);
38
39         mAclID = aclID;
40     }
41
42
43     //-------------------------------------------------------------------------
44
// Fulco 18 Apr. 2001
45
/**
46      * Return the Access Control List unique identification number that could
47      * not be found.
48      *
49      * @return The ACL ID that could not be found.
50      */

51     public int getAclID () {
52         return mAclID;
53     }
54 }
55
Popular Tags