Sha256: 310a49afe3a32cb917a6560a83e420a2a8384416c3f18f027460957fad51c6cf

Contents?: true

Size: 685 Bytes

Versions: 8

Compression:

Stored size: 685 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

8 entries across 8 versions & 1 rubygems

Version Path
protobuf-1.1.3 lib/protobuf/rpc/error/client_error.rb
protobuf-1.1.2 lib/protobuf/rpc/error/client_error.rb
protobuf-1.1.1 lib/protobuf/rpc/error/client_error.rb
protobuf-1.1.0.beta2 lib/protobuf/rpc/error/client_error.rb
protobuf-1.1.0.beta1 lib/protobuf/rpc/error/client_error.rb
protobuf-1.1.0.beta0 lib/protobuf/rpc/error/client_error.rb
protobuf-1.0.1 lib/protobuf/rpc/error/client_error.rb
protobuf-1.0.0 lib/protobuf/rpc/error/client_error.rb