KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > columba > ristretto > imap > CommmandTooLongException


1 //The contents of this file are subject to the Mozilla Public License Version 1.1
2
//(the "License"); you may not use this file except in compliance with the
3
//License. You may obtain a copy of the License at http://www.mozilla.org/MPL/
4
//
5
//Software distributed under the License is distributed on an "AS IS" basis,
6
//WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
7
//for the specific language governing rights and
8
//limitations under the License.
9
//
10
//The Original Code is "The Columba Project"
11
//
12
//The Initial Developers of the Original Code are Frederik Dietz and Timo Stich.
13
//Portions created by Frederik Dietz and Timo Stich are Copyright (C) 2003.
14
//
15
//All Rights Reserved.
16

17 package org.columba.ristretto.imap;
18
19 /**
20  * Thrown when a the length of the command is longer than 1000 charcters.
21  * Split the command and reissue in smaller packets.
22  *
23  * @author tstich
24  */

25 public class CommmandTooLongException extends IMAPException {
26
27     /**
28      *
29      */

30     private static final long serialVersionUID = 1L;
31     IMAPCommand command;
32     
33     /**
34      * Constructs the CommmandTooLongException.
35      *
36      * @param command
37      */

38     public CommmandTooLongException(IMAPCommand command) {
39         super();
40         this.command = command;
41     }
42     /**
43      * Constructs the CommmandTooLongException.
44      *
45      *
46      */

47     public CommmandTooLongException() {
48         super();
49     }
50
51     /**
52      * Constructs the CommmandTooLongException.
53      *
54      * @param arg0
55      * @param arg1
56      */

57     public CommmandTooLongException(String JavaDoc arg0, Throwable JavaDoc arg1) {
58         super(arg0, arg1);
59     }
60
61     /**
62      * Constructs the CommmandTooLongException.
63      *
64      * @param s
65      */

66     public CommmandTooLongException(String JavaDoc s) {
67         super(s);
68     }
69
70     /**
71      * Constructs the CommmandTooLongException.
72      *
73      * @param response
74      */

75     public CommmandTooLongException(IMAPResponse response) {
76         super(response);
77     }
78
79     /**
80      * Constructs the CommmandTooLongException.
81      *
82      * @param cause
83      */

84     public CommmandTooLongException(Throwable JavaDoc cause) {
85         super(cause);
86     }
87
88     /**
89      * Gets the command that caused the error.
90      *
91      * @return the issued command
92      */

93     public IMAPCommand getCommand() {
94         return command;
95     }
96 }
97
Popular Tags