blob: 0e0e821e5dfb19a41a7ea47848472afa13758a7b [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.
package conn
// These messages are constructed so as to avoid embedding a component/method name
// and are thus more suitable for inclusion in other verrors.
// This practice of omitting {1}{2} should be used throughout the flow implementations
// since all of their errors are intended to be used as arguments to higher level errors.
// TODO(suharshs,toddw): Allow skipping of {1}{2} in vdl generated errors.
error (
InvalidMsg(typ byte, size, field int64) {
"en": "message of type{:typ} and size{:size} failed decoding at field{:field}."}
InvalidControlMsg(cmd byte, size, field int64) {
"en": "control message of cmd{:cmd} and size{:size} failed decoding at field{:field}."}
UnknownMsg(typ byte) {"en":"unknown message type{:typ}."}
UnknownControlMsg(cmd byte) {"en": "unknown control command{:cmd}."}
UnexpectedMsg(typ string) {"en": "unexpected message type{:typ}."}
ConnectionClosed() {"en": "connection closed."}
ConnKilledToFreeResources() {"en": "Connection killed to free resources."}
ConnClosedRemotely(msg string) {"en": "connection closed remotely{:msg}."}
FlowClosedRemotely() {"en": "flow closed remotely."}
Send(typ, dest string, err error) {"en": "failure sending {typ} message to {dest}{:err}."}
Recv(src string, err error) {"en": "error reading from {src}{:err}"}
CacheClosed() {"en":"cache is closed"}
CounterOverflow() {"en": "A remote process has sent more data than allowed."}
)