module documentation
HAProxy specific exceptions.
Exception |
|
The network protocol was not one of TCP4 TCP6 or UNKNOWN. |
Exception |
|
The provided PROXY protocol header is invalid. |
Exception |
|
The address data is missing or incomplete. |
Function | convert |
Convert an error into a different error type. |
@contextlib.contextmanager
def convertError(sourceType:
def convertError(sourceType:
Type[ BaseException]
, targetType: Callable[ [], BaseException]
) -> Generator[ None, None, None]
:
(source)
¶
Convert an error into a different error type.
Parameters | |
sourceBaseException | The type of exception that should be caught and converted. |
targetBaseException | The type of exception to which the original should be converted. |
Returns | |
Generator[ | Undocumented |