Suharsh Sivakumar | c51e014 | 2015-09-21 17:19:16 -0700 | [diff] [blame^] | 1 | // Copyright 2015 The Vanadium Authors. All rights reserved. |
| 2 | // Use of this source code is governed by a BSD-style |
| 3 | // license that can be found in the LICENSE file. |
| 4 | |
| 5 | package flow |
| 6 | |
| 7 | // These messages are constructed so as to avoid embedding a component/method name |
| 8 | // and are thus more suitable for inclusion in other verrors. |
| 9 | // This practice of omitting {1}{2} should be used throughout the flow implementations |
| 10 | // since all of their errors are intended to be used as arguments to higher level errors. |
| 11 | // TODO(suharshs,toddw): Allow skipping of {1}{2} in vdl generated errors. |
| 12 | error ( |
| 13 | WrongObjectInContext(typ string) {"en": |
| 14 | "context passed to method of {typ} object, but that object is not attached to the context."} |
| 15 | ) |