Sha256: edbcad13787ef6beb9858ae6819f6cbcd9bd85a307d50ec2359277e3af7d9b3f

Contents?: true

Size: 689 Bytes

Versions: 104

Compression:

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

104 entries across 104 versions & 1 rubygems

Version Path
protobuf-2.4.3-java lib/protobuf/rpc/error/client_error.rb
protobuf-2.4.3 lib/protobuf/rpc/error/client_error.rb
protobuf-2.4.3.rc1 lib/protobuf/rpc/error/client_error.rb
protobuf-2.4.2-java lib/protobuf/rpc/error/client_error.rb
protobuf-2.4.2 lib/protobuf/rpc/error/client_error.rb
protobuf-2.4.1-java lib/protobuf/rpc/error/client_error.rb
protobuf-2.4.1 lib/protobuf/rpc/error/client_error.rb
protobuf-2.4.0-java lib/protobuf/rpc/error/client_error.rb
protobuf-2.4.0 lib/protobuf/rpc/error/client_error.rb
protobuf-2.3.2-java lib/protobuf/rpc/error/client_error.rb
protobuf-2.3.2 lib/protobuf/rpc/error/client_error.rb
protobuf-2.3.1-java lib/protobuf/rpc/error/client_error.rb
protobuf-2.3.1 lib/protobuf/rpc/error/client_error.rb
protobuf-2.3.0-java lib/protobuf/rpc/error/client_error.rb
protobuf-2.3.0 lib/protobuf/rpc/error/client_error.rb
protobuf-2.2.7-java lib/protobuf/rpc/error/client_error.rb
protobuf-2.2.7 lib/protobuf/rpc/error/client_error.rb
protobuf-2.2.6-java lib/protobuf/rpc/error/client_error.rb
protobuf-2.2.6 lib/protobuf/rpc/error/client_error.rb
protobuf-2.2.5-java lib/protobuf/rpc/error/client_error.rb