Statistics
| Branch: | Tag: | Revision:

root / web_client / src / gr / grnet / pithos / web / client / InsufficientPermissionsException.java @ ab1eb3f8

History | View | Annotate | Download (1.8 kB)

1 ab1eb3f8 Christos Stathis
/*
2 ab1eb3f8 Christos Stathis
 * Copyright 2007, 2008, 2009 Electronic Business Systems Ltd.
3 ab1eb3f8 Christos Stathis
 *
4 ab1eb3f8 Christos Stathis
 * This file is part of GSS.
5 ab1eb3f8 Christos Stathis
 *
6 ab1eb3f8 Christos Stathis
 * GSS is free software: you can redistribute it and/or modify
7 ab1eb3f8 Christos Stathis
 * it under the terms of the GNU General Public License as published by
8 ab1eb3f8 Christos Stathis
 * the Free Software Foundation, either version 3 of the License, or
9 ab1eb3f8 Christos Stathis
 * (at your option) any later version.
10 ab1eb3f8 Christos Stathis
 *
11 ab1eb3f8 Christos Stathis
 * GSS is distributed in the hope that it will be useful,
12 ab1eb3f8 Christos Stathis
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 ab1eb3f8 Christos Stathis
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14 ab1eb3f8 Christos Stathis
 * GNU General Public License for more details.
15 ab1eb3f8 Christos Stathis
 *
16 ab1eb3f8 Christos Stathis
 * You should have received a copy of the GNU General Public License
17 ab1eb3f8 Christos Stathis
 * along with GSS.  If not, see <http://www.gnu.org/licenses/>.
18 ab1eb3f8 Christos Stathis
 */
19 ab1eb3f8 Christos Stathis
package gr.grnet.pithos.web.client;
20 ab1eb3f8 Christos Stathis
21 ab1eb3f8 Christos Stathis
import java.io.Serializable;
22 ab1eb3f8 Christos Stathis
23 ab1eb3f8 Christos Stathis
/**
24 ab1eb3f8 Christos Stathis
 * An exception that is thrown when an operation cannot be performed due to the
25 ab1eb3f8 Christos Stathis
 * user having insufficient permissions.
26 ab1eb3f8 Christos Stathis
 *
27 ab1eb3f8 Christos Stathis
 * @author chstath
28 ab1eb3f8 Christos Stathis
 */
29 ab1eb3f8 Christos Stathis
public class InsufficientPermissionsException extends Exception implements Serializable {
30 ab1eb3f8 Christos Stathis
31 ab1eb3f8 Christos Stathis
        /**
32 ab1eb3f8 Christos Stathis
         * The serial version UID.
33 ab1eb3f8 Christos Stathis
         */
34 ab1eb3f8 Christos Stathis
        private static final long serialVersionUID = 1L;
35 ab1eb3f8 Christos Stathis
36 ab1eb3f8 Christos Stathis
        /**
37 ab1eb3f8 Christos Stathis
         * The stored message that provides details about the problem.
38 ab1eb3f8 Christos Stathis
         */
39 ab1eb3f8 Christos Stathis
        private String message;
40 ab1eb3f8 Christos Stathis
41 ab1eb3f8 Christos Stathis
        /**
42 ab1eb3f8 Christos Stathis
         *
43 ab1eb3f8 Christos Stathis
         */
44 ab1eb3f8 Christos Stathis
        public InsufficientPermissionsException() {
45 ab1eb3f8 Christos Stathis
        }
46 ab1eb3f8 Christos Stathis
47 ab1eb3f8 Christos Stathis
        /**
48 ab1eb3f8 Christos Stathis
         * @param newMessage
49 ab1eb3f8 Christos Stathis
         */
50 ab1eb3f8 Christos Stathis
        public InsufficientPermissionsException(final String newMessage) {
51 ab1eb3f8 Christos Stathis
                super(newMessage);
52 ab1eb3f8 Christos Stathis
                message = newMessage;
53 ab1eb3f8 Christos Stathis
        }
54 ab1eb3f8 Christos Stathis
55 ab1eb3f8 Christos Stathis
        /**
56 ab1eb3f8 Christos Stathis
         * @param cause
57 ab1eb3f8 Christos Stathis
         */
58 ab1eb3f8 Christos Stathis
        public InsufficientPermissionsException(final Throwable cause) {
59 ab1eb3f8 Christos Stathis
                super(cause);
60 ab1eb3f8 Christos Stathis
61 ab1eb3f8 Christos Stathis
        }
62 ab1eb3f8 Christos Stathis
63 ab1eb3f8 Christos Stathis
        /**
64 ab1eb3f8 Christos Stathis
         * @param newMessage
65 ab1eb3f8 Christos Stathis
         * @param cause
66 ab1eb3f8 Christos Stathis
         */
67 ab1eb3f8 Christos Stathis
        public InsufficientPermissionsException(final String newMessage, final Throwable cause) {
68 ab1eb3f8 Christos Stathis
                super(newMessage, cause);
69 ab1eb3f8 Christos Stathis
                message = newMessage;
70 ab1eb3f8 Christos Stathis
        }
71 ab1eb3f8 Christos Stathis
72 ab1eb3f8 Christos Stathis
        @Override
73 ab1eb3f8 Christos Stathis
        public String getMessage() {
74 ab1eb3f8 Christos Stathis
                return message;
75 ab1eb3f8 Christos Stathis
        }
76 ab1eb3f8 Christos Stathis
}