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