<s> from azure . common import ( <EOL> AzureHttpError , <EOL> ) <EOL> _ERROR_CONFLICT = '<STR_LIT>' <EOL> _ERROR_NOT_FOUND = '<STR_LIT>' <EOL> _ERROR_UNKNOWN = '<STR_LIT>' <EOL> _ERROR_VALUE_NONE = '<STR_LIT>' <EOL> _ERROR_ASYNC_OP_FAILURE = '<STR_LIT>' <EOL> _ERROR_ASYNC_OP_TIMEOUT = '<STR_LIT>' <EOL> def _general_error_handler ( http_error ) : <EOL> '''<STR_LIT>''' <EOL> message = str ( http_error ) <EOL> if http_error . respbody is not None : <EOL> message += '<STR_LIT:\n>' + http_error . respbody . decode ( '<STR_LIT>' ) <EOL> raise AzureHttpError ( message , http_error . status ) <EOL> def _validate_not_none ( param_name , param ) : <EOL> if param is None : <EOL> raise ValueError ( _ERROR_VALUE_NONE . format ( param_name ) ) </s>
