Sha256: 5de48242963cb68e8a735b6f7f9ee7cf85fc90579ffeadbe4ff5366ba7075a9c

Contents?: true

Size: 677 Bytes

Versions: 62

Compression:

Stored size: 677 Bytes

Contents

require 'protobuf/rpc/error'

module Protobuf
  module Rpc

    class InvalidRequestProto < PbError
      def initialize(message = 'Invalid request type given')
        super message, 'INVALID_REQUEST_PROTO'
      end
    end

    class BadResponseProto < PbError
      def initialize(message = 'Bad response type from server')
        super message, 'BAD_RESPONSE_PROTO'
      end
    end

    class UnkownHost < PbError
      def initialize(message = 'Unknown host or port')
        super message, 'UNKNOWN_HOST'
      end
    end

    class IOError < PbError
      def initialize(message = 'IO Error occurred')
        super message, 'IO_ERROR'
      end
    end

  end
end

Version data entries

62 entries across 62 versions & 4 rubygems

Version Path
protobuf-3.10.9 lib/protobuf/rpc/error/client_error.rb
protobuf-3.10.8 lib/protobuf/rpc/error/client_error.rb
protobuf-3.10.7 lib/protobuf/rpc/error/client_error.rb
protobuf-3.10.6 lib/protobuf/rpc/error/client_error.rb
protobuf-3.10.5 lib/protobuf/rpc/error/client_error.rb
protobuf-3.10.4 lib/protobuf/rpc/error/client_error.rb
protobuf-cucumber-3.10.8 lib/protobuf/rpc/error/client_error.rb
protobuf-cucumber-3.10.7 lib/protobuf/rpc/error/client_error.rb
protobuf-cucumber-3.10.6 lib/protobuf/rpc/error/client_error.rb
protobuf-cucumber-3.10.5 lib/protobuf/rpc/error/client_error.rb
protobuf-cucumber-3.10.4 lib/protobuf/rpc/error/client_error.rb
protobuf-3.10.3 lib/protobuf/rpc/error/client_error.rb
protobuf-3.10.2 lib/protobuf/rpc/error/client_error.rb
protobuf-3.10.1 lib/protobuf/rpc/error/client_error.rb
protobuf-3.10.0 lib/protobuf/rpc/error/client_error.rb
protobuf-3.10.0.pre0 lib/protobuf/rpc/error/client_error.rb
protobuf-3.9.0 lib/protobuf/rpc/error/client_error.rb
protobuf-3.9.0.pre2 lib/protobuf/rpc/error/client_error.rb
protobuf-3.9.0.pre lib/protobuf/rpc/error/client_error.rb
protobuf-3.8.5 lib/protobuf/rpc/error/client_error.rb