Statistics
| Branch: | Tag: | Revision:

root / src / gr / ebs / gss / client / exceptions / QuotaExceededException.java @ 01a30cd0

History | View | Annotate | Download (1.8 kB)

1
/*
2
 * Copyright 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.ebs.gss.client.exceptions;
20

    
21
import java.io.Serializable;
22

    
23
import javax.ejb.ApplicationException;
24

    
25

    
26
/**
27
 * An exception that is thrown when an operation cannot be performed due to the
28
 * user having insufficient quota.
29
 *
30
 * @author kman
31
 *
32
 */
33
@ApplicationException(rollback=true)
34
public class QuotaExceededException extends Exception implements Serializable {
35

    
36
        /**
37
         * The serial version UID.
38
         */
39
        private static final long serialVersionUID = 1L;
40

    
41
        /**
42
         * The stored message that provides details about the problem.
43
         */
44
        private String message;
45

    
46
        /**
47
         *
48
         */
49
        public QuotaExceededException() {
50
        }
51

    
52
        /**
53
         * @param newMessage
54
         */
55
        public QuotaExceededException(final String newMessage) {
56
                super(newMessage);
57
                message = newMessage;
58
        }
59

    
60
        /**
61
         * @param cause
62
         */
63
        public QuotaExceededException(final Throwable cause) {
64
                super(cause);
65

    
66
        }
67

    
68
        /**
69
         * @param newMessage
70
         * @param cause
71
         */
72
        public QuotaExceededException(final String newMessage, final Throwable cause) {
73
                super(newMessage, cause);
74
                message = newMessage;
75
        }
76

    
77
        @Override
78
        public String getMessage() {
79
                return message;
80
        }
81

    
82
}