View Javadoc

1   /*
2    ------------------------------
3    Hermes FTP Server
4    Copyright (c) 2006 Lars Behnke
5    ------------------------------
6   
7    This file is part of Hermes FTP Server.
8   
9    Hermes FTP Server is free software; you can redistribute it and/or modify
10   it under the terms of the GNU General Public License as published by
11   the Free Software Foundation; either version 2 of the License, or
12   (at your option) any later version.
13  
14   Foobar is distributed in the hope that it will be useful,
15   but WITHOUT ANY WARRANTY; without even the implied warranty of
16   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17   GNU General Public License for more details.
18  
19   You should have received a copy of the GNU General Public License
20   along with Foobar; if not, write to the Free Software
21   Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
22   */
23  
24  package net.sf.hermesftp.exception;
25  
26  /***
27   * Exception thrown by the FTP server when a client has reached quota limits. These limits can be
28   * configured in the hermes context file.
29   *
30   * @author Lars Behnke
31   *
32   */
33  public class FtpQuotaException
34      extends FtpException {
35  
36      private static final long serialVersionUID = -5875206764152032864L;
37  
38      /***
39       * Constructor.
40       */
41      public FtpQuotaException() {
42          super();
43      }
44  
45      /***
46       * Constructor.
47       *
48       * @param message The message to be displayed.
49       */
50      public FtpQuotaException(String message) {
51          super(message);
52      }
53  
54      /***
55       * {@inheritDoc}
56       */
57      protected String getCategory() {
58          return "FTP Quota";
59      }
60  }