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.7.12 lib/protobuf/rpc/error/client_error.rb
protobuf-2.7.11-java lib/protobuf/rpc/error/client_error.rb
protobuf-2.7.11 lib/protobuf/rpc/error/client_error.rb
protobuf-2.7.10-java lib/protobuf/rpc/error/client_error.rb
protobuf-2.7.10 lib/protobuf/rpc/error/client_error.rb
protobuf-2.7.9-java lib/protobuf/rpc/error/client_error.rb
protobuf-2.7.9 lib/protobuf/rpc/error/client_error.rb
protobuf-2.7.8-java lib/protobuf/rpc/error/client_error.rb
protobuf-2.7.8 lib/protobuf/rpc/error/client_error.rb
protobuf-2.7.7-java lib/protobuf/rpc/error/client_error.rb
protobuf-2.7.7 lib/protobuf/rpc/error/client_error.rb
protobuf-2.7.6-java lib/protobuf/rpc/error/client_error.rb
protobuf-2.7.6 lib/protobuf/rpc/error/client_error.rb
protobuf-2.7.5-java lib/protobuf/rpc/error/client_error.rb
protobuf-2.7.5 lib/protobuf/rpc/error/client_error.rb
protobuf-2.7.4-java lib/protobuf/rpc/error/client_error.rb
protobuf-2.7.4 lib/protobuf/rpc/error/client_error.rb
protobuf-2.7.3-java lib/protobuf/rpc/error/client_error.rb
protobuf-2.7.3 lib/protobuf/rpc/error/client_error.rb
protobuf-2.7.2-java lib/protobuf/rpc/error/client_error.rb