1 23 24 25 package javax.jms; 26 27 44 45 public class JMSException extends Exception { 46 47 49 private String errorCode; 50 51 53 private Exception linkedException; 54 55 56 63 public 64 JMSException(String reason, String errorCode) { 65 super(reason); 66 this.errorCode = errorCode; 67 linkedException = null; 68 } 69 70 75 public 76 JMSException(String reason) { 77 super(reason); 78 this.errorCode = null; 79 linkedException = null; 80 } 81 82 86 public 87 String getErrorCode() { 88 return this.errorCode; 89 } 90 91 96 public 97 Exception getLinkedException() { 98 return (linkedException); 99 } 100 101 106 public 107 synchronized void setLinkedException(Exception ex) { 108 linkedException = ex; 109 } 110 } 111 | Popular Tags |