KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > freecs > core > CanceledRequestException


1 /**
2  * Copyright (C) 2005 manfred andres
3  * Created: 15.01.2005 (18:21:23)
4  *
5  * This program is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU General Public License
7  * as published by the Free Software Foundation; either version 2
8  * of the License, or (at your option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with this program; if not, write to the Free Software
17  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
18  */

19 package freecs.core;
20
21
22 /**
23  * @author manfred andres
24  *
25  * CanceledRequestException will be throwen if a Request has been terminated
26  */

27 public class CanceledRequestException extends Exception JavaDoc {
28     final boolean timedOut;
29     public CanceledRequestException (String JavaDoc msg, boolean timedOut) {
30         super(msg);
31         this.timedOut=timedOut;
32     }
33     
34     public CanceledRequestException (String JavaDoc msg) {
35         super(msg);
36         this.timedOut=false;
37     }
38 }
39
Popular Tags