byteblower_test_framework.exceptions module

Module related to exceptions and handling of them.

exception byteblower_test_framework.exceptions.ByteBlowerTestFrameworkException

Bases: Exception

Base exception for all ByteBlower Test Framework related exceptions.

exception byteblower_test_framework.exceptions.InfiniteDuration

Bases: ByteBlowerTestFrameworkException

Raised when a flow duration is not specified.

exception byteblower_test_framework.exceptions.NotDurationBased

Bases: ByteBlowerTestFrameworkException

Raised when a flow is not duration based.

byteblower_test_framework.exceptions.log_api_error(func: Callable) Callable

Decorate method or function to logs ByteBlower API errors.

Any exception will be (re-)raised.

Parameters:

func (Callable) – Function to decorate

Returns:

Decorated function

Return type:

Callable