Statistics
| Branch: | Tag: | Revision:

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

History | View | Annotate | Download (1.1 kB)

1 ab1eb3f8 Christos Stathis
/*
2 6dd67d1c Christos Stathis
 * Copyright (c) 2011 Greek Research and Technology Network
3 ab1eb3f8 Christos Stathis
 */
4 ab1eb3f8 Christos Stathis
package gr.grnet.pithos.web.client;
5 ab1eb3f8 Christos Stathis
6 ab1eb3f8 Christos Stathis
import java.io.Serializable;
7 ab1eb3f8 Christos Stathis
8 ab1eb3f8 Christos Stathis
/**
9 ab1eb3f8 Christos Stathis
 * An exception that is thrown when an operation cannot be performed due to the
10 ab1eb3f8 Christos Stathis
 * user having insufficient permissions.
11 ab1eb3f8 Christos Stathis
 *
12 ab1eb3f8 Christos Stathis
 */
13 ab1eb3f8 Christos Stathis
public class InsufficientPermissionsException extends Exception implements Serializable {
14 ab1eb3f8 Christos Stathis
15 ab1eb3f8 Christos Stathis
        /**
16 ab1eb3f8 Christos Stathis
         * The serial version UID.
17 ab1eb3f8 Christos Stathis
         */
18 ab1eb3f8 Christos Stathis
        private static final long serialVersionUID = 1L;
19 ab1eb3f8 Christos Stathis
20 ab1eb3f8 Christos Stathis
        /**
21 ab1eb3f8 Christos Stathis
         * The stored message that provides details about the problem.
22 ab1eb3f8 Christos Stathis
         */
23 ab1eb3f8 Christos Stathis
        private String message;
24 ab1eb3f8 Christos Stathis
25 ab1eb3f8 Christos Stathis
        /**
26 ab1eb3f8 Christos Stathis
         *
27 ab1eb3f8 Christos Stathis
         */
28 ab1eb3f8 Christos Stathis
        public InsufficientPermissionsException() {
29 ab1eb3f8 Christos Stathis
        }
30 ab1eb3f8 Christos Stathis
31 ab1eb3f8 Christos Stathis
        /**
32 ab1eb3f8 Christos Stathis
         * @param newMessage
33 ab1eb3f8 Christos Stathis
         */
34 ab1eb3f8 Christos Stathis
        public InsufficientPermissionsException(final String newMessage) {
35 ab1eb3f8 Christos Stathis
                super(newMessage);
36 ab1eb3f8 Christos Stathis
                message = newMessage;
37 ab1eb3f8 Christos Stathis
        }
38 ab1eb3f8 Christos Stathis
39 ab1eb3f8 Christos Stathis
        /**
40 ab1eb3f8 Christos Stathis
         * @param cause
41 ab1eb3f8 Christos Stathis
         */
42 ab1eb3f8 Christos Stathis
        public InsufficientPermissionsException(final Throwable cause) {
43 ab1eb3f8 Christos Stathis
                super(cause);
44 ab1eb3f8 Christos Stathis
45 ab1eb3f8 Christos Stathis
        }
46 ab1eb3f8 Christos Stathis
47 ab1eb3f8 Christos Stathis
        /**
48 ab1eb3f8 Christos Stathis
         * @param newMessage
49 ab1eb3f8 Christos Stathis
         * @param cause
50 ab1eb3f8 Christos Stathis
         */
51 ab1eb3f8 Christos Stathis
        public InsufficientPermissionsException(final String newMessage, final Throwable cause) {
52 ab1eb3f8 Christos Stathis
                super(newMessage, cause);
53 ab1eb3f8 Christos Stathis
                message = newMessage;
54 ab1eb3f8 Christos Stathis
        }
55 ab1eb3f8 Christos Stathis
56 ab1eb3f8 Christos Stathis
        @Override
57 ab1eb3f8 Christos Stathis
        public String getMessage() {
58 ab1eb3f8 Christos Stathis
                return message;
59 ab1eb3f8 Christos Stathis
        }
60 ab1eb3f8 Christos Stathis
}