<s> class HTTPError ( Exception ) : <EOL> "<STR_LIT>" <EOL> pass <EOL> class PoolError ( HTTPError ) : <EOL> "<STR_LIT>" <EOL> def __init__ ( self , pool , message ) : <EOL> self . pool = pool <EOL> HTTPError . __init__ ( self , "<STR_LIT>" % ( pool , message ) ) <EOL> class SSLError ( HTTPError ) : <EOL> "<STR_LIT>" <EOL> pass <EOL> class DecodeError ( HTTPError ) : <EOL> "<STR_LIT>" <EOL> pass <EOL> class MaxRetryError ( PoolError ) : <EOL> "<STR_LIT>" <EOL> def __init__ ( self , pool , url ) : <EOL> message = "<STR_LIT>" % url <EOL> PoolError . __init__ ( self , pool , message ) <EOL> self . url = url <EOL> class HostChangedError ( PoolError ) : <EOL> "<STR_LIT>" <EOL> def __init__ ( self , pool , url , retries = <NUM_LIT:3> ) : <EOL> message = "<STR_LIT>" % url <EOL> PoolError . __init__ ( self , pool , message ) <EOL> self . url = url <EOL> self . retries = retries <EOL> class TimeoutError ( PoolError ) : <EOL> "<STR_LIT>" <EOL> pass <EOL> class EmptyPoolError ( PoolError ) : <EOL> "<STR_LIT>" <EOL> pass <EOL> class ClosedPoolError ( PoolError ) : <EOL> "<STR_LIT>" <EOL> pass <EOL> class LocationParseError ( ValueError , HTTPError ) : <EOL> "<STR_LIT>" <EOL> def __init__ ( self , location ) : <EOL> message = "<STR_LIT>" % location <EOL> super ( LocationParseError , self ) . __init__ ( self , message ) <EOL> self . location = location </s>
