rwsf::ServletUnavailableExceptionrwsf::ServletException
clone() getUnavailableSeconds() |
isPermanent() raise() |
ServletUnavailableException() ~ServletUnavailableException() |
#include rwsf/servlet/except.h
A servlet throws rwsf::ServletUnavailableException to indicate to the Agent that the servlet cannot process requests.
ServletUnavailableException(const char * msg);
Constructs a new exception with the given msg. This exception notifies the Agent that the servlet is not available to receive requests. An exception created with this constructor returns true from isPermanent().
ServletUnavailableException(const char * msg, int seconds);
Constructs a new exception with the given msg and the number of seconds that the servlet will be unavailable. A rwsf::ServletUnavailableException that contains a number of seconds indicates that the failure is temporary. The Agent may either remove the servlet or suspend requests to the servlet for at least the number of seconds specified.
~ServletUnavailableException();
Destructor.
Exception * clone(void) const;
Reimplements method in rwsf::ServletException
Base class documentation:
Creates a new instance of self on the heap, and returns the pointer to the user. The user is resposible for deallocating the associated memory.
Implementation documentation:
Creates a new instance of self on the heap, and returns the pointer to the user. The user is resposible for deallocating the associated memory.
int getUnavailableSeconds() const;
Returns the number of seconds this servlet is unavailable. Returns -1 if the servlet is permanently unavailable.
bool isPermanent() const;
Returns true if this servlet is permanently unavailable, false otherwise.
void raise(void) const;
Reimplements method in rwsf::ServletException
Base class documentation:
Throws a copy of self.
Implementation documentation:
Throws a copy of self.
© Copyright Rogue Wave Software, Inc. All Rights Reserved. All Rights Reserved. Rogue Wave is a registered trademark of Rogue Wave Software, Inc. in the United States and other countries. HydraExpress is a trademark of Rogue Wave Software, Inc. All other trademarks are the property of their respective owners.
Contact Rogue Wave about documentation or support issues.