public class ExceptionBean extends Object implements IPooledObject<IExceptionBean>, IExceptionBean
<%= exception.getErrorMessage() %> <%= exception.getStackTrace() %>
Modifier and Type | Field and Description |
---|---|
protected Exception |
m_exception
the exception object for this bean
|
protected IObjectPool<IExceptionBean> |
m_pool |
Constructor and Description |
---|
ExceptionBean()
Default constructor
|
Modifier and Type | Method and Description |
---|---|
String |
getErrorMessage()
Retrieve the error message from the Exception represented by this bean
|
Exception |
getException()
Retrieve the exception represented by this bean
|
IObjectPool<IExceptionBean> |
getPool()
Gets this object's pool.
|
String |
getStackTrace()
Retrieve the stack trace for this message
|
void |
release()
Cleans up this object's member resources,
preparing it to be added back into the pool.
|
void |
setException(Exception newException)
Set the exception represented by this bean
|
void |
setPool(IObjectPool<IExceptionBean> pool)
Sets this object's pool.
|
protected Exception m_exception
protected transient IObjectPool<IExceptionBean> m_pool
public String getErrorMessage()
getErrorMessage
in interface IExceptionBean
public String getStackTrace()
getStackTrace
in interface IExceptionBean
public void setException(Exception newException)
setException
in interface IExceptionBean
newException
- the exception this bean should representpublic Exception getException()
getException
in interface IExceptionBean
public void release()
release
in interface IPooledObject<IExceptionBean>
public IObjectPool<IExceptionBean> getPool()
getPool
in interface IPooledObject<IExceptionBean>
public void setPool(IObjectPool<IExceptionBean> pool)
setPool(com.webmethods.portal.system.pool.IObjectPool<com.webmethods.portal.framework.error.IExceptionBean>)
does nothing.setPool
in interface IPooledObject<IExceptionBean>