Package org.glassfish.jms.admin.cli
Class JMSAdminException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- org.glassfish.jms.admin.cli.JMSAdminException
-
- All Implemented Interfaces:
Serializable
public class JMSAdminException extends Exception
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description JMSAdminException()
Constructs an JMSAdminException objectJMSAdminException(String message)
Constructs an JMSAdminException object
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Exception
getLinkedException()
Gets the exception linked to this oneString
getMessage()
Returns the message along with the message from any linked exception.void
setLinkedException(Exception ex)
Adds a linked Exception-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
JMSAdminException
public JMSAdminException()
Constructs an JMSAdminException object
-
JMSAdminException
public JMSAdminException(String message)
Constructs an JMSAdminException object- Parameters:
message
- Exception message
-
-
Method Detail
-
getLinkedException
public Exception getLinkedException()
Gets the exception linked to this one- Returns:
- the linked Exception, null if none
-
setLinkedException
public void setLinkedException(Exception ex)
Adds a linked Exception- Parameters:
ex
- the linked Exception
-
getMessage
public String getMessage()
Returns the message along with the message from any linked exception.- Overrides:
getMessage
in classThrowable
-
-