Skip navigation links
com.stellent.cis.common.exception
Class BaseRuntimeException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.stellent.cis.common.exception.BaseRuntimeException
- All Implemented Interfaces:
- java.io.Serializable
- Direct Known Subclasses:
- CommandConfigurationException, CommandRuntimeException, CommonSearchParseException, CreateAPIObjectException, EJBConnectionException, PropertyRetrievalException, PropertySetException
-
public class BaseRuntimeException
- extends java.lang.RuntimeException
Base class for runtime exceptions in the system.
- See Also:
- Serialized Form
Method Summary |
java.lang.String |
getMessage()
Returns the detail message string of this throwable. |
java.lang.Throwable |
getRootCause()
Unrolls the exception stack and returns the last error in the stack |
boolean |
isWrapper()
Determines if this exception just holds another exception and provides no more contextual information. |
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
m_isWrapper
protected boolean m_isWrapper
m_hasMessage
protected boolean m_hasMessage
BaseRuntimeException
public BaseRuntimeException()
BaseRuntimeException
public BaseRuntimeException(java.lang.String message)
BaseRuntimeException
public BaseRuntimeException(java.lang.String message,
java.lang.Throwable cause)
BaseRuntimeException
public BaseRuntimeException(java.lang.Throwable cause)
isWrapper
public boolean isWrapper()
- Determines if this exception just holds another exception and provides no more contextual information. Useful for displaying error messages without the command stack trace; i.e.
-
- Returns:
getRootCause
public java.lang.Throwable getRootCause()
- Unrolls the exception stack and returns the last error in the stack
-
- Returns:
- the root exception class
getMessage
public java.lang.String getMessage()
- Returns the detail message string of this throwable. If this throwable was constructed without a message, then return the rootCause() message. (Effectively removing the classname from the message)
-
- Overrides:
getMessage
in class java.lang.Throwable
-
- Returns:
- the detail message string of this Throwable instance (which may be null).
Skip navigation links
Copyright © 1996, 2010, Oracle and/or its affiliates. All rights reserved.