|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.jasig.portal.PortalException
public class PortalException
Base portal exception class. Information contained in this class allows ErrorChannel to handle errors gracefully. This class also reports itself to the ProblemsTable whenever it is instantiated. The Problems servlet displays recently reported PortalExceptions.
| Constructor Summary | |
|---|---|
PortalException()
Instantiate a generic PortalException. |
|
PortalException(ErrorID errorid)
Instantiate a PortalException representing an instance of the type of error represented by the given ErrorID. |
|
PortalException(ErrorID errorid,
Throwable cause)
Instantiate a PortalException representing an instance of the type of error represented by the given ErrorID, with the given underlying cause. |
|
PortalException(String msg)
Creates a new PortalException instance,
with a contained text message. |
|
PortalException(String msg,
boolean refresh,
boolean reinstantiate)
Instantiate a PortalException with the given message and refresh, reinstantiate state. |
|
PortalException(String msg,
Throwable cause)
Instantiate a PortalException with the given message and underlying cause. |
|
PortalException(String msg,
Throwable cause,
boolean refresh,
boolean reinstantiate)
Instantiate a PortalException with the given message, underlying cause, refresh, and reinstantiate state. |
|
PortalException(Throwable cause)
Construct a new portal exception, recording an underlying cause. |
|
| Method Summary | |
|---|---|
ErrorID |
getErrorID()
Get the ErrorID representing the type of this error. |
String |
getParameter()
Get the parameter to the ErrorID template message. |
Date |
getTimestamp()
Get the Date at which this PortalException instance was instantiated. |
boolean |
isLogPending()
Determine whether logging is pending on this PortalException. |
boolean |
isRefreshable()
Check if user-mediated referesh is allowed. |
boolean |
isReinstantiable()
Check if user-mediated reinstantiation is allowed. |
void |
setErrorID(ErrorID errorID)
Set the ErrorID categorizing this PortalException. |
void |
setLogPending(boolean b)
Set whether logging is pending on this PortalException. |
void |
setParameter(String string)
Set the parameter to the ErrorID template message. |
void |
setRefreshable(boolean refresh)
Set if the user should be presented with an option to retry the same operation on the component that has generated the error. |
void |
setReinstantiable(boolean reinstantiate)
Set if the user should be presented with an option to reinstantiate the component (channel) that generated the error. |
| Methods inherited from class java.lang.Throwable |
|---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public PortalException()
public PortalException(Throwable cause)
cause - a Throwable causing this exceptionpublic PortalException(String msg)
PortalException instance,
with a contained text message.
msg - describes exceptional conditionpublic PortalException(ErrorID errorid)
errorid - - type of error
public PortalException(String msg,
Throwable cause)
msg - - message describing the errorcause - - underlying cause of the error
public PortalException(ErrorID errorid,
Throwable cause)
errorid - - type of errorcause - - underlying cause of error.
public PortalException(String msg,
boolean refresh,
boolean reinstantiate)
msg - - message describing the problemrefresh - - whether refresh is appropriate responsereinstantiate - - whether reinstantiate is appropriate response
public PortalException(String msg,
Throwable cause,
boolean refresh,
boolean reinstantiate)
msg - - message describing the problemcause - - underlying cause of problemrefresh - - true if refresh is an appropriate responsereinstantiate - - true if reinstantiate is an appropriate response| Method Detail |
|---|
public boolean isRefreshable()
public boolean isReinstantiable()
public void setRefreshable(boolean refresh)
refresh - a boolean valuepublic void setReinstantiable(boolean reinstantiate)
reinstantiate - a boolean valuepublic boolean isLogPending()
true if the log is pending, otherwise falsepublic void setLogPending(boolean b)
b - true if logging is pendingpublic ErrorID getErrorID()
public void setErrorID(ErrorID errorID)
errorID - the ErrorID categorizing this PortalException.public String getParameter()
public void setParameter(String string)
string - - parameter to ErrorID template message.public Date getTimestamp()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||