| |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.servlet.ServletException org.apache.jetspeed.portlet.PortletException org.apache.jetspeed.portlet.UnavailableException
public class UnavailableException
Use the UnavailableException when the instantiation of a portlet fails.
Constructor Summary | |
---|---|
UnavailableException(int seconds,
Portlet portlet,
java.lang.String msg)
Deprecated. use UnavailableException(String, int) instead. | |
UnavailableException(Portlet portlet,
java.lang.String msg)
Deprecated. use UnavailableException(String) instead. | |
UnavailableException(java.lang.String msg)
Deprecated. Constructs a new exception with a descriptive message indicating that the portlet is permanently unavailable. | |
UnavailableException(java.lang.String msg,
int seconds)
Deprecated. Constructs a new exception with a descriptive message indicating that the portlet is temporarily unavailable and giving an estimate of how long it will be unavailable. |
Method Summary | |
---|---|
Portlet | getPortlet()
Deprecated. no replacement. Returns the portlet that is reporting its unavailability. |
int | getUnavailableSeconds()
Deprecated. Returns the number of seconds the portlet expects to be temporarily unavailable. |
boolean | isPermanent()
Deprecated. Returns a boolean indicating
whether the portlet is permanently unavailable.
|
void | printStackTrace()
Deprecated. Prints the stack trace of this exception to the standard error stream. |
void | java.io.PrintStream)">printStackTrace(java.io.PrintStream out)
Deprecated. Prints the stack trace of this exception to the specified print stream. |
void | java.io.PrintWriter)">printStackTrace(java.io.PrintWriter out)
Deprecated. Prints the stack trace of this exception to the specified print writer. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public UnavailableException(Portlet portlet, java.lang.String msg)
String
specifying the
descriptive messagepublic UnavailableException(int seconds, Portlet portlet, java.lang.String msg)
String
specifying the descriptive
message, which can be written to a log file or
displayed for the user.public UnavailableException(java.lang.String msg)
String
specifying the
descriptive messagepublic UnavailableException(java.lang.String msg, int seconds)
In some cases, the portlet cannot make an estimate. For
example, the portlet might know that a server it needs is
not running, but not be able to report how long it will take
to be restored to functionality. This can be indicated with
a negative or zero value for the seconds
argument.
String
specifying the
descriptive message, which can be written
to a log file or displayed for the user.Method Detail |
---|
public boolean isPermanent()
boolean
indicating
whether the portlet is permanently unavailable.
If so, something is wrong with the portlet, and the
system administrator must take some corrective action.
true
if the portlet is
permanently unavailable; false
if the portlet is available or temporarily
unavailablepublic Portlet getPortlet()
UnavailableException
public int getUnavailableSeconds()
If this method returns a negative number, the portlet is permanently unavailable or cannot provide an estimate of how long it will be unavailable. No effort is made to correct for the time elapsed since the exception was first reported.
public void printStackTrace()
public void printStackTrace(java.io.PrintStream out)
PrintStream
to use for outputpublic void printStackTrace(java.io.PrintWriter out)
PrintWriter
to use for output.
| |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |