38 |
public class FTPException extends IOException |
public class FTPException extends IOException |
39 |
{ |
{ |
40 |
|
|
41 |
/** |
/** |
42 |
* The response that provoked this exception. |
* The response that provoked this exception. |
43 |
*/ |
*/ |
44 |
protected final FTPResponse response; |
protected final FTPResponse response; |
45 |
|
|
46 |
/** |
/** |
47 |
* Constructs a new FTP exception. |
* Constructs a new FTP exception. |
48 |
* @param response the response that provoked this exception |
* @param response the response that provoked this exception |
49 |
*/ |
*/ |
50 |
public FTPException(FTPResponse response) |
public FTPException(FTPResponse response) |
51 |
{ |
{ |
52 |
super(response.getMessage()); |
super(response.getMessage()); |
53 |
this.response = response; |
this.response = response; |
54 |
} |
} |
55 |
|
|
56 |
/** |
/** |
57 |
* Returns the response that provoked this exception. |
* Returns the response that provoked this exception. |
58 |
*/ |
*/ |
59 |
public FTPResponse getResponse() |
public FTPResponse getResponse() |
60 |
{ |
{ |
61 |
return response; |
return response; |
62 |
} |
} |
63 |
|
|
64 |
} |
} |