Sha256: d082f7cab5f746d4126d82c7c0a5b72dd49c4632e49d3d136886544850a79d3f

Contents?: true

Size: 963 Bytes

Versions: 60

Compression:

Stored size: 963 Bytes

Contents

require 'protobuf/rpc/rpc.pb'

module Protobuf
  module Rpc

    class BadRequestData < PbError
      def initialize(message = 'Unable to parse request')
        super message, 'BAD_REQUEST_DATA'
      end
    end

    class BadRequestProto < PbError
      def initialize(message = 'Request is of wrong type')
        super message, 'BAD_REQUEST_PROTO'
      end
    end

    class ServiceNotFound < PbError
      def initialize(message = 'Service class not found')
        super message, 'SERVICE_NOT_FOUND'
      end
    end

    class MethodNotFound < PbError
      def initialize(message = 'Service method not found')
        super message, 'METHOD_NOT_FOUND'
      end
    end

    class RpcError < PbError
      def initialize(message = 'RPC exception occurred')
        super message, 'RPC_ERROR'
      end
    end

    class RpcFailed < PbError
      def initialize(message = 'RPC failed')
        super message, 'RPC_FAILED'
      end
    end

  end
end

Version data entries

60 entries across 60 versions & 3 rubygems

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