Sha256: 105ae8d350acb234152829ab29c1739bc589a8c7c85b9fcd5845975ab71a55a8

Contents?: true

Size: 311 Bytes

Versions: 144

Compression:

Stored size: 311 Bytes

Contents

module Scrivito

  class CommunicationError < StandardError
    attr_reader :http_code, :message

    def initialize(message, http_code)
      @http_code = http_code.to_i
      @message = message
    end

    def to_s
      "HTTP-Response-Code: #{self.http_code}, Body: \"#{self.message}\""
    end

  end

end

Version data entries

144 entries across 144 versions & 1 rubygems

Version Path
scrivito_sdk-1.2.0.rc2 lib/scrivito/communication_error.rb
scrivito_sdk-1.2.0.rc1 lib/scrivito/communication_error.rb
scrivito_sdk-1.1.1 lib/scrivito/communication_error.rb
scrivito_sdk-1.1.0 lib/scrivito/communication_error.rb
scrivito_sdk-1.1.0.rc3 lib/scrivito/communication_error.rb
scrivito_sdk-1.1.0.rc2 lib/scrivito/communication_error.rb
scrivito_sdk-1.1.0.rc1 lib/scrivito/communication_error.rb
scrivito_sdk-1.0.0 lib/scrivito/communication_error.rb
scrivito_sdk-1.0.0.rc4 lib/scrivito/communication_error.rb
scrivito_sdk-1.0.0.rc3 lib/scrivito/communication_error.rb
scrivito_sdk-1.0.0.rc2 lib/scrivito/communication_error.rb
scrivito_sdk-1.0.0.rc1 lib/scrivito/communication_error.rb
scrivito_sdk-0.90.0 lib/scrivito/communication_error.rb
scrivito_sdk-0.90.0.rc3 lib/scrivito/communication_error.rb
scrivito_sdk-0.90.0.rc2 lib/scrivito/communication_error.rb
scrivito_sdk-0.90.0.rc1 lib/scrivito/communication_error.rb
scrivito_sdk-0.70.2 lib/scrivito/communication_error.rb
scrivito_sdk-0.71.2 lib/scrivito/communication_error.rb
scrivito_sdk-0.71.1 lib/scrivito/communication_error.rb
scrivito_sdk-0.70.1 lib/scrivito/communication_error.rb