blob: 688e8adbc26fbf784012818cf6cbab46c87d0ad8 [file] [log] [blame]
// Copyright 2015 The Vanadium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// This file was auto-generated by the vanadium vdl tool.
// Source: errors.vdl
package xproxyd
import (
// VDL system imports
"v.io/v23/context"
"v.io/v23/i18n"
"v.io/v23/verror"
)
var (
ErrNotListening = verror.Register("v.io/x/ref/services/xproxyd.NotListening", verror.NoRetry, "{1:}{2:} Proxy is not listening on any endpoints.")
ErrUnexpectedMessage = verror.Register("v.io/x/ref/services/xproxyd.UnexpectedMessage", verror.NoRetry, "{1:}{2:} Unexpected message of type{:3}")
)
func init() {
i18n.Cat().SetWithBase(i18n.LangID("en"), i18n.MsgID(ErrNotListening.ID), "{1:}{2:} Proxy is not listening on any endpoints.")
i18n.Cat().SetWithBase(i18n.LangID("en"), i18n.MsgID(ErrUnexpectedMessage.ID), "{1:}{2:} Unexpected message of type{:3}")
}
// NewErrNotListening returns an error with the ErrNotListening ID.
func NewErrNotListening(ctx *context.T) error {
return verror.New(ErrNotListening, ctx)
}
// NewErrUnexpectedMessage returns an error with the ErrUnexpectedMessage ID.
func NewErrUnexpectedMessage(ctx *context.T, msgType string) error {
return verror.New(ErrUnexpectedMessage, ctx, msgType)
}