1 16 package org.apache.commons.net.io; 17 18 import java.io.IOException ; 19 20 29 public class CopyStreamException extends IOException  30 { 31 private long totalBytesTransferred; 32 private IOException ioException; 33 34 41 public CopyStreamException(String message, 42 long bytesTransferred, 43 IOException exception) 44 { 45 super(message); 46 totalBytesTransferred = bytesTransferred; 47 ioException = exception; 48 } 49 50 56 public long getTotalBytesTransferred() 57 { 58 return totalBytesTransferred; 59 } 60 61 65 public IOException getIOException() 66 { 67 return ioException; 68 } 69 } 70 | Popular Tags |