HydraExpress 4.6 |
HydraExpress C++ API Reference Guide |
|
Throws an rwsf::ServletUnavailableException. More...
#include <rwsf/servlet/except.h>
Public Member Functions | |
ServletUnavailableException (const char *msg) | |
ServletUnavailableException (const char *msg, int seconds) | |
~ServletUnavailableException () throw () | |
int | getUnavailableSeconds () const |
bool | isPermanent () const |
A servlet throws rwsf::ServletUnavailableException to indicate to the Agent that the servlet cannot process requests.
rwsf::ServletUnavailableException::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().
rwsf::ServletUnavailableException::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. An 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.
rwsf::ServletUnavailableException::~ServletUnavailableException | ( | ) | throw () |
Destructor.
int rwsf::ServletUnavailableException::getUnavailableSeconds | ( | ) | const |
Returns the number of seconds this servlet is unavailable. Returns -1
if the servlet is permanently unavailable.
bool rwsf::ServletUnavailableException::isPermanent | ( | ) | const |
Returns true
if this servlet is permanently unavailable, otherwise returns false
.
Copyright © Rogue Wave Software, Inc. All Rights Reserved.
The Rogue Wave name and logo are registered trademarks of Rogue Wave Software, and HydraExpress is a trademark of Rogue Wave Software. All other trademarks are the property of their respective owners.