1 2 29 30 package com.jcraft.jsch; 31 32 public class SftpException extends Exception { 33 public int id; 35 private Throwable cause=null; 36 public SftpException (int id, String message) { 37 super(message); 38 this.id=id; 39 } 40 public SftpException (int id, String message, Throwable e) { 41 super(message); 42 this.id=id; 43 this.cause=e; 44 } 45 public String toString(){ 46 return id+": "+getMessage(); 47 } 48 public Throwable getCause(){ 49 return this.cause; 50 } 51 } 52 | Popular Tags |