コード例 #1
0
ファイル: main.go プロジェクト: andrebq/exp
func (c *ClientConn) unexpectedErr(fc *plan9.Fcall, err error) *plan9.Fcall {
	fc.Type = plan9.Rerror
	fc.Ename = err.Error()
	return fc
}
コード例 #2
0
ファイル: main.go プロジェクト: andrebq/exp
func (c *ClientConn) fidUsedErr(fc *plan9.Fcall) *plan9.Fcall {
	fc.Type = plan9.Rerror
	fc.Ename = "fid in use"
	return fc
}
コード例 #3
0
ファイル: main.go プロジェクト: andrebq/exp
func (c *ClientConn) invalidFidErr(fc *plan9.Fcall) *plan9.Fcall {
	fc.Type = plan9.Rerror
	fc.Ename = "fid not found"
	return fc
}
コード例 #4
0
ファイル: main.go プロジェクト: andrebq/exp
func (c *ClientConn) fileNotFoundErr(fc *plan9.Fcall) *plan9.Fcall {
	fc.Type = plan9.Rerror
	fc.Ename = "file not found"
	return fc
}
コード例 #5
0
ファイル: main.go プロジェクト: andrebq/exp
func noauth(fc *plan9.Fcall) *plan9.Fcall {
	fc.Type = plan9.Rerror
	fc.Ename = "no auth requried"
	return fc
}