func (e Error) Error() string {
	return fmt.Sprintf("%v", e.Value)
}
Error implements the error interface.
package rpc
import (
	"bufio"
	"errors"
	"fmt"
	"io"
	"reflect"
	"sync"
	"github.com/neovim/go-client/msgpack"
)
type kind int
const (
	requestMessage      kind = 0
	replyMessage        kind = 1
	notificationMessage kind = 2
)
type state int
const (
	stateInit state = iota
	stateClosed
)
var (
	ErrClosed = errors.New("msgpack/rpc: session closed")
	ErrInternal = errors.New("msgpack/rpc: internal error")
	ErrHandlerNotFunction = errors.New("msgpack/rpc: handler not a function")
	ErrInvalidHandlerReturn = errors.New("msgpack/rpc: handler return must be (), (error) or (valueType, error)")
	ErrInvalidArgument = errors.New("msgpack/rpc: invalid argument")
)
type Error struct {
	Value interface{}
}