lib/uploadcare/concern/error_handler.rb
def wrap(response)
        raise_throttling_error(response) if response.status == 429
        return failure(response) if response.status >= 300

        catch_upload_errors(response)
        success(response)
      end
# Extension of ApiStruct's wrap method
#
# Catches throttling errors and Upload API errors
#
# @see https://github.com/rubygarage/api_struct/blob/master/lib/api_struct/client.rb#L45
Extension of ApiStruct's wrap method
Catches throttling errors and Upload API errors
Extension of ApiStruct ' s wrap method Catches throttling errors and Upload API errors
def wrap(response)
        raise_throttling_error(response) if response.status == 429
        return failure(response) if response.status >= 300
        catch_upload_errors(response)
        success(response)
      end
def wrap ( response ) raise_throttling_error ( response ) if response . status == 429 return failure ( response ) if response . status >= 300 catch_upload_errors ( response ) success ( response ) end
Extension of ApiStruct's wrap method
Catches throttling errors and Upload API errors
Extension of ApiStruct ' s wrap method Catches throttling errors and Upload API errors
response
see
None