version 1.1.2.1, 2006/04/18 03:15:28
|
version 1.1.2.2, 2006/04/24 19:15:09
|
|
|
| |
#include <Clients/cliutils/CommandException.h> | #include <Clients/cliutils/CommandException.h> |
| |
|
|
PEGASUS_NAMESPACE_BEGIN | PEGASUS_NAMESPACE_BEGIN |
| |
/** | /** |
| |
StressTestControllerException signals that an exception has occurred in executing the |
StressTestControllerException signals that an exception has occurred in |
osinfo command. |
executing the StressTestController command. |
| |
@author Hewlett-Packard Company |
|
| |
*/ | */ |
class StressTestControllerException : public CommandException | class StressTestControllerException : public CommandException |
|
|
public: | public: |
/** | /** |
| |
Constructs an StressTestControllerException with a message corresponding to the |
Constructs an StressTestControllerException with a message corresponding |
specified exception ID. |
to the specified exception ID. |
| |
@param ID the integer exception identifier | @param ID the integer exception identifier |
| |
*/ | */ |
StressTestControllerException (Uint32 ID); | StressTestControllerException (Uint32 ID); |
| |
/** |
|
|
|
Constructs an StressTestControllerException with a message corresponding to the |
|
specified ID, appended with the specified String. |
|
|
|
@param ID the integer exception identifier |
|
@param appendString the string to append to the exception message |
|
|
|
*/ |
|
StressTestControllerException (Uint32 ID, const String& appendString); |
|
| |
/** | /** |
| |
|
|
| |
/** | /** |
| |
Exception identifier indicating a connection failure. |
Exception identifier indicating "Syntax Error" with client option. |
| |
*/ | */ |
| |
static const Uint32 CONNECT_FAIL; |
static const Uint32 INVALID_OPTION; |
| |
/** | /** |
| |
Exception identifier indicating timed out waiting for response. |
Exception identifier indicating "Syntax Error" with client option |
|
operator. |
| |
*/ | */ |
static const Uint32 TIMED_OUT; |
static const Uint32 INVALID_OPERATOR; |
| |
/** | /** |
| |
Exception identifier indicating invalid input. |
Exception identifier indicating "Missing closing square brace". |
| |
*/ | */ |
static const Uint32 INVALID_INPUT; |
static const Uint32 MISSING_BRACE; |
| |
/** | /** |
| |
Maximum valid exception identifier. This value must be updated when |
Exception identifier indicating "Missing value for client option". |
a new exception identifier and message are added. |
|
| |
*/ | */ |
|
static const Uint32 MISSING_VALUE; |
|
|
|
|
static const Uint32 MAX_ID; | static const Uint32 MAX_ID; |
| |
private: | private: |
|
|
static const char* _messageStrings []; | static const char* _messageStrings []; |
}; | }; |
| |
/** |
|
ConfigFileSyntaxError Exception class |
|
*/ |
|
class ConfigFileSyntaxError : public Exception |
|
{ |
|
public: |
|
ConfigFileSyntaxError(const String& file, Uint32 line) |
|
: Exception(_formatMessage(file, line)) { } |
|
|
|
static String _formatMessage(const String& file, Uint32 line); |
|
}; |
|
|
|
/** |
|
InvalidPropertyValue Exception class |
|
*/ |
|
class InvalidPropertyValue : public Exception |
|
{ |
|
public: |
|
InvalidPropertyValue(const String& name, const String& value) |
|
: Exception(MessageLoaderParms("Config.ConfigExceptions.INVALID_PROPERTY_VALUE", |
|
"Invalid property value: $0=$1", |
|
name, |
|
value )) { } |
|
}; |
|
|
|
/** |
|
InvalidClientPropertyValue Exception class |
|
*/ |
|
class InvalidClientPropertyValue : public Exception |
|
{ |
|
public: |
|
InvalidClientPropertyValue(const String& name, const String& value) |
|
: Exception(MessageLoaderParms("Config.ConfigExceptions.INVALID_PROPERTY_VALUE", |
|
"Invalid client property value: $0=$1", |
|
name, |
|
value )) { } |
|
}; |
|
|
|
/** |
|
DuplicateOption Exception class |
|
*/ |
|
class DuplicateOption : public Exception |
|
{ |
|
public: |
|
DuplicateOption(const String& name) |
|
: Exception(MessageLoaderParms("Config.ConfigExceptions.DUPLICATE_OPTION", |
|
name)) { } |
|
}; |
|
|
|
PEGASUS_NAMESPACE_END | PEGASUS_NAMESPACE_END |
| |
#endif /* Pegasus_StressTestControllerException_h */ | #endif /* Pegasus_StressTestControllerException_h */ |