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-0.50.0.rc2 lib/scrivito/communication_error.rb
scrivito_sdk-0.50.0.rc1 lib/scrivito/communication_error.rb
scrivito_sdk-0.42.1 lib/scrivito/communication_error.rb
scrivito_sdk-0.42.1.rc3 lib/scrivito/communication_error.rb
scrivito_sdk-0.42.1.rc2 lib/scrivito/communication_error.rb
scrivito_sdk-0.42.1.rc1 lib/scrivito/communication_error.rb
scrivito_sdk-0.42.0 lib/scrivito/communication_error.rb
scrivito_sdk-0.41.1 lib/scrivito/communication_error.rb
scrivito_sdk-0.41.0 lib/scrivito/communication_error.rb
scrivito_sdk-0.41.0.rc2 lib/scrivito/communication_error.rb
scrivito_sdk-0.41.0.rc1 lib/scrivito/communication_error.rb
scrivito_sdk-0.40.0 lib/scrivito/communication_error.rb
scrivito_sdk-0.40.0.rc2 lib/scrivito/communication_error.rb
scrivito_sdk-0.40.0.rc1 lib/scrivito/communication_error.rb
scrivito_sdk-0.30.0 lib/scrivito/communication_error.rb
scrivito_sdk-0.30.0.rc1 lib/scrivito/communication_error.rb
scrivito_sdk-0.18.1 lib/scrivito/communication_error.rb
scrivito_sdk-0.18.0 lib/scrivito/communication_error.rb
scrivito_sdk-0.17.0 lib/scrivito/communication_error.rb
scrivito_sdk-0.16.0 lib/scrivito/communication_error.rb