// NewShardOwnershipLost returns new ShardOwnershipLost error.
func NewShardOwnershipLost(ownerHost string, currentHost string) error {
shard_ownership_lost.go
return &ShardOwnershipLost{
Message: fmt.Sprintf("Shard is owned by:%v but not by %v", ownerHost, currentHost),
OwnerHost: ownerHost,
CurrentHost: currentHost,
}
}
// Error returns string message.