1 23 24 package com.sun.enterprise.admin.common.exception; 25 26 28 public class JMSAdminException extends AFException 29 { 30 31 34 private Exception linkedException; 35 private String _message = null; 36 37 40 public JMSAdminException() 41 { 42 super(); 43 linkedException = null; 44 } 45 46 50 public JMSAdminException(String message) 51 { 52 super(message); 53 _message = message; 54 linkedException = null; 55 } 56 57 62 public Exception getLinkedException() { 63 return (linkedException); 64 } 65 66 71 public synchronized void setLinkedException(Exception ex) { 72 linkedException = ex; 73 } 74 75 79 public String getMessage() { 80 String retString = null; 81 82 if (_message != null) { 84 retString = _message; 85 } 86 87 if (linkedException != null && linkedException.getMessage() != null) { 89 if (retString != null) { 90 retString += retString + "\n" + linkedException.getMessage(); 91 } else { 92 retString = linkedException.getMessage(); 93 } 94 } 95 96 return retString; 97 98 } 99 100 } 101 | Popular Tags |