/[classpath]/inetlib/source/gnu/inet/ftp/FTPException.java
ViewVC logotype

Diff of /inetlib/source/gnu/inet/ftp/FTPException.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1 by dog, Sun Oct 19 08:51:37 2003 UTC revision 1.2 by dog, Sun Oct 19 16:16:49 2003 UTC
# Line 38  import java.io.IOException; Line 38  import java.io.IOException;
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  }  }

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26