| // 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 flowcontrol |
| |
| import ( |
| // VDL system imports |
| "v.io/v23/context" |
| "v.io/v23/i18n" |
| "v.io/v23/verror" |
| ) |
| |
| var ( |
| ErrConcurrentRun = verror.Register("v.io/x/ref/runtime/internal/flow/flowcontrol.ConcurrentRun", verror.NoRetry, "{1:}{2:} Run called concurrently") |
| ErrWrongFlowController = verror.Register("v.io/x/ref/runtime/internal/flow/flowcontrol.WrongFlowController", verror.NoRetry, "{1:}{2:} Release called for worker from different flow controller") |
| ) |
| |
| func init() { |
| i18n.Cat().SetWithBase(i18n.LangID("en"), i18n.MsgID(ErrConcurrentRun.ID), "{1:}{2:} Run called concurrently") |
| i18n.Cat().SetWithBase(i18n.LangID("en"), i18n.MsgID(ErrWrongFlowController.ID), "{1:}{2:} Release called for worker from different flow controller") |
| } |
| |
| // NewErrConcurrentRun returns an error with the ErrConcurrentRun ID. |
| func NewErrConcurrentRun(ctx *context.T) error { |
| return verror.New(ErrConcurrentRun, ctx) |
| } |
| |
| // NewErrWrongFlowController returns an error with the ErrWrongFlowController ID. |
| func NewErrWrongFlowController(ctx *context.T) error { |
| return verror.New(ErrWrongFlowController, ctx) |
| } |