1 |
/* |
/* |
2 |
* $Id$ |
* FTPException.java |
3 |
* Copyright (C) 2003 The Free Software Foundation |
* Copyright (C) 2003 The Free Software Foundation |
4 |
* |
* |
5 |
* This file is part of GNU inetlib, a library. |
* This file is part of GNU inetlib, a library. |
44 |
* An FTP control exception. |
* An FTP control exception. |
45 |
* |
* |
46 |
* @author <a href='mailto:dog@gnu.org'>Chris Burdess</a> |
* @author <a href='mailto:dog@gnu.org'>Chris Burdess</a> |
|
* @version $Revision$ $Date$ |
|
47 |
*/ |
*/ |
48 |
public class FTPException extends IOException |
public class FTPException |
49 |
|
extends IOException |
50 |
{ |
{ |
51 |
|
|
52 |
/** |
/** |
58 |
* Constructs a new FTP exception. |
* Constructs a new FTP exception. |
59 |
* @param response the response that provoked this exception |
* @param response the response that provoked this exception |
60 |
*/ |
*/ |
61 |
public FTPException (FTPResponse response) |
public FTPException(FTPResponse response) |
62 |
{ |
{ |
63 |
super (response.getMessage ()); |
super(response.getMessage()); |
64 |
this.response = response; |
this.response = response; |
65 |
} |
} |
66 |
|
|
67 |
/** |
/** |
68 |
* Returns the response that provoked this exception. |
* Returns the response that provoked this exception. |
69 |
*/ |
*/ |
70 |
public FTPResponse getResponse () |
public FTPResponse getResponse() |
71 |
{ |
{ |
72 |
return response; |
return response; |
73 |
} |
} |
74 |
|
|
75 |
} |
} |
76 |
|
|