FileDocCategorySizeDatePackage
JMSAdminException.javaAPI DocGlassfish v2 API3566Fri May 04 22:33:34 BST 2007com.sun.enterprise.admin.common.exception

JMSAdminException

public class JMSAdminException extends AFException

Fields Summary
private Exception
linkedException
Exception reference
private String
_message
Constructors Summary
public JMSAdminException()
Constructs an JMSAdminException object


             
     
    
        super();
        linkedException = null;
    
public JMSAdminException(String message)
Constructs an JMSAdminException object

param
message Exception message

        super(message);
	_message = message;
        linkedException = null;
    
Methods Summary
public java.lang.ExceptiongetLinkedException()
Gets the exception linked to this one

return
the linked Exception, null if none

        return (linkedException);
    
public java.lang.StringgetMessage()
Returns the message along with the message from any linked exception.

	String retString = null;

	// Return the message of this exception.
	if (_message != null) {
	   retString = _message;
	}

	// Append any message from the linked exception.
	if (linkedException != null && linkedException.getMessage() != null) {
	    if (retString != null) {
	        retString += retString + "\n" + linkedException.getMessage();
	    } else {
	        retString = linkedException.getMessage();
	    }
	}

	return retString;
        
    
public synchronized voidsetLinkedException(java.lang.Exception ex)
Adds a linked Exception

param
ex the linked Exception

        linkedException = ex;