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 ExceptiongetLinkedException()Gets the exception linked to this oneStringgetMessage()Returns the message along with the message from any linked exception.voidsetLinkedException(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:
getMessagein classThrowable
-
-