Sha256: 3f29d61d6b0830ec78caac2ce7e0eb1a6e6fcf4b7a97854fff0bafb3646c0ddd

Contents?: true

Size: 1.33 KB

Versions: 1

Compression:

Stored size: 1.33 KB

Contents

o:$YARD::CodeObjects::MethodObject:@docstringIC:YARD::Docstring"
:@objectu:YARD::StubProxyTopsy::Client#raise_errors:
@tags[:	@all":@line_range0:@ref_tags[:@parameters[["
response0:@namespaceu;	Topsy::Client:@source_type:	ruby;
[:@explicitT:
@name:raise_errors:@visibility:private:@current_file_has_commentsF:@signature"ýdef raise_errors(response)
        code = response.code.to_i
        case code
        when 400
          raise Topsy::General.new("Parameter check failed. This error indicates that a required parameter is missing or a parameter has a value that is out of bounds.")
        when 403
          raise Topsy::Unauthorized.new
        when 404
          raise Topsy::NotFound.new
        when 500
          raise Topsy::InformTopsy.new
        when 503
          raise Topsy::Unavailable.new
        end
      end:@scope:
instance:@files[["lib/topsy/client.rbi±:
@linei±:@source"©def raise_errors(response)
  code = response.code.to_i
  case code
  when 400
    raise Topsy::General.new("Parameter check failed. This error indicates that a required parameter is missing or a parameter has a value that is out of bounds.")
  when 403
    raise Topsy::Unauthorized.new
  when 404
    raise Topsy::NotFound.new
  when 500
    raise Topsy::InformTopsy.new
  when 503
    raise Topsy::Unavailable.new
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
topsy-0.2.0 .yardoc/objects/Topsy/Client/raise_errors_i.dat