hvpn-node3/proto/error.go

19 lines
277 B
Go
Raw Permalink Normal View History

package proto
import "errors"
type ErrJSONResponse struct {
Message string `json:"message"`
}
type PeerExistsErr struct {
PublicKey string
}
func (e PeerExistsErr) Error() string {
return e.PublicKey
}
var PeerDoesNotExist = errors.New("Peer does not exist")