Exceptions
This page contains the API documentation for the gradual.exceptions module.
gradual.exceptions
This module contains custom exceptions used throughout the stress testing framework. These exceptions help provide clear error messages and handle specific error cases that may occur during test configuration and execution.
Classes
InvalidConfigError(prop=None, msg=None)
Bases: ValueError
Exception raised when user passes invalid or missing configuration properties.
This exception is used to indicate configuration errors in the stress testing framework, such as missing required parameters or invalid values in the configuration files.
Attributes:
| Name | Type | Description |
|---|---|---|
prop |
str
|
The property for which the configuration is invalid or empty. |
msg |
str
|
Detailed explanation of the error. If not provided, a default message will be generated based on the property name. |
Initialize the InvalidConfigError with property and message details.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
prop
|
str
|
The property that caused the error |
None
|
msg
|
str
|
Custom error message. If not provided, a default message will be generated using the property name. |
None
|