KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jahia > exceptions > JahiaOperationNotAllowedException


1 // $Id: JahiaOperationNotAllowedException.java 3567 2003-06-30 22:32:03Z shuber $
2
//
3
//
4
// ____.
5
// __/\ ______| |__/\. _______
6
// __ .____| | \ | +----+ \
7
// _______| /--| | | - \ _ | : - \_________
8
// \\______: :---| : : | : | \________>
9
// |__\---\_____________:______: :____|____:_____\
10
// /_____|
11
//
12
// . . . i n j a h i a w e t r u s t . . .
13
//
14

15
16 package org.jahia.exceptions;
17
18
19 /**
20  * This exception is raised when an operation is not allowed.
21  * i.e. delete the current page
22  *
23  * @author Yann Gentil
24  * @version 1.0
25  */

26 public class JahiaOperationNotAllowedException extends JahiaException
27 {
28     private int mPageID;
29     private String JavaDoc mMessage;
30
31     //-------------------------------------------------------------------------
32
/** Default constructor
33      *
34      * @param pageID The page ID.
35      * @param mess The exception message.
36      */

37     public JahiaOperationNotAllowedException (int pageID, String JavaDoc mess)
38     {
39         super ("Operation Not allowed [Page:" + pageID+"] - "+ mess,
40                mess,
41                PAGE_ERROR, ERROR_SEVERITY);
42
43         mPageID = pageID;
44     }
45
46     
47
48     //-------------------------------------------------------------------------
49
/** Return the ID of the page.
50      */

51     public final int getPageID () {
52         return mPageID;
53     }
54
55 }
56
Popular Tags