ϪfdZddlZddlmZmZmZGddeZGddeZGdd eZ ejd ee d ege fd ed fdZ y)z HAProxy specific exceptions. N)Callable GeneratorTypeceZdZdZy)InvalidProxyHeaderz8 The provided PROXY protocol header is invalid. N__name__ __module__ __qualname____doc__G/usr/lib/python3/dist-packages/twisted/protocols/haproxy/_exceptions.pyrr rrceZdZdZy)InvalidNetworkProtocolzC The network protocol was not one of TCP4 TCP6 or UNKNOWN. Nrr rrrrrrrceZdZdZy)MissingAddressDataz4 The address data is missing or incomplete. Nrr rrrrrrr sourceType targetTypereturn)NNNc#pK dy#|$r%}|j|jd}~wwxYww)aA Convert an error into a different error type. @param sourceType: The type of exception that should be caught and converted. @type sourceType: L{BaseException} @param targetType: The type of exception to which the original should be converted. @type targetType: L{BaseException} N)with_traceback __traceback__)rres r convertErrorrs4; ;l))!//::;s6 63 .36) r contextlibtypingrrr Exceptionrrrcontextmanager BaseExceptionrr rrr"s ,, / +  ;]#;19"m:K1L; ;;r