<s> __all__ = [ <EOL> '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , <EOL> '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , <EOL> '<STR_LIT>' , '<STR_LIT>' <EOL> ] <EOL> class ImproperlyConfigured ( Exception ) : <EOL> """<STR_LIT>""" <EOL> class ElasticsearchException ( Exception ) : <EOL> """<STR_LIT>""" <EOL> class SerializationError ( ElasticsearchException ) : <EOL> """<STR_LIT>""" <EOL> class TransportError ( ElasticsearchException ) : <EOL> """<STR_LIT>""" <EOL> @ property <EOL> def status_code ( self ) : <EOL> """<STR_LIT>""" <EOL> return self . args [ <NUM_LIT:0> ] <EOL> @ property <EOL> def error ( self ) : <EOL> """<STR_LIT>""" <EOL> return self . args [ <NUM_LIT:1> ] <EOL> @ property <EOL> def info ( self ) : <EOL> """<STR_LIT>""" <EOL> return self . args [ <NUM_LIT:2> ] <EOL> def __str__ ( self ) : <EOL> return '<STR_LIT>' % ( self . status_code , self . error ) <EOL> class ConnectionError ( TransportError ) : <EOL> """<STR_LIT>""" <EOL> def __str__ ( self ) : <EOL> return '<STR_LIT>' % ( <EOL> self . error , self . info . __class__ . __name__ , self . info ) <EOL> class SSLError ( ConnectionError ) : <EOL> """<STR_LIT>""" <EOL> class ConnectionTimeout ( ConnectionError ) : <EOL> """<STR_LIT>""" <EOL> def __str__ ( self ) : <EOL> return '<STR_LIT>' % ( <EOL> self . info . __class__ . __name__ , self . info ) <EOL> class NotFoundError ( TransportError ) : <EOL> """<STR_LIT>""" <EOL> class ConflictError ( TransportError ) : <EOL> """<STR_LIT>""" <EOL> class RequestError ( TransportError ) : <EOL> """<STR_LIT>""" <EOL> class AuthenticationException ( TransportError ) : <EOL> """<STR_LIT>""" <EOL> class AuthorizationException ( TransportError ) : <EOL> """<STR_LIT>""" <EOL> HTTP_EXCEPTIONS = { <EOL> <NUM_LIT> : RequestError , <EOL> <NUM_LIT> : AuthenticationException , <EOL> <NUM_LIT> : AuthorizationException , <EOL> <NUM_LIT> : NotFoundError , <EOL> <NUM_LIT> : ConflictError , <EOL> } </s>
