1 44 45 package com.enterprisedt.net.ftp; 46 47 54 public class FTPException extends Exception { 55 56 59 private static String cvsId = "@(#)$Id: FTPException.java,v 1.1.1.1 2005/06/23 15:22:58 smontoro Exp $"; 60 61 62 65 private int replyCode = -1; 66 67 73 public FTPException(String msg) { 74 super(msg); 75 } 76 77 84 public FTPException(String msg, String replyCode) { 85 86 super(msg); 87 88 try { 90 this.replyCode = Integer.parseInt(replyCode); 91 } 92 catch (NumberFormatException ex) { 93 this.replyCode = -1; 94 } 95 } 96 97 98 103 public int getReplyCode() { 104 return replyCode; 105 } 106 107 } 108 | Popular Tags |