wve

package
v0.4.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 6, 2019 License: GPL-3.0 Imports: 2 Imported by: 15

Documentation

Index

Constants

View Source
const BodySchemeError = 203
View Source
const ContextError = 101

Things like user timeout

View Source
const GRPCAlreadyExists = 600
View Source
const GRPCCancelled = 100
View Source
const GRPCFailedPrecondition = 900
View Source
const GRPCInvalidArgument = 300
View Source
const GRPCNotFound = 500
View Source
const GRPCUnknown = 200
View Source
const InternalError = 202

An internal error that is most likely a bug

View Source
const InvalidE2EEGrant = 915
View Source
const InvalidMultihash = 305
View Source
const InvalidParameter = 304
View Source
const InvalidSignature = 906
View Source
const KeyringDecryptFailed = 303
View Source
const LookupFailure = 909
View Source
const MalformedDER = 904
View Source
const MalformedObject = 907
View Source
const MalformedPartition = 914
View Source
const MessageDecryptFailed = 913
View Source
const MissingParameter = 301
View Source
const NoProofFound = 911
View Source
const PassphraseRequired = 302
View Source
const ProofInvalid = 912
View Source
const StorageError = 204
View Source
const UnexpectedObject = 905
View Source
const UnknownError = 201

A generic error that might be the user's fault

View Source
const UnsupportedBodyScheme = 902
View Source
const UnsupportedHashScheme = 901
View Source
const UnsupportedKeyScheme = 903
View Source
const UnsupportedLocationScheme = 910
View Source
const UnsupportedSignatureScheme = 908

Variables

This section is empty.

Functions

func Chan

func Chan(e WVE) chan WVE

func ChkContextError

func ChkContextError(ctx context.Context, rve chan WVE) bool

Context errors cascade quite a bit and tend to cause duplicate errors in the return channel. Try not to leak goroutiens by] blocking on them

func NoBlockError

func NoBlockError(e WVE, ch chan WVE)

Types

type WVE

type WVE interface {
	error
	Code() int
	Reason() string
	Cause() error
}

func CtxE

func CtxE(ctx context.Context) WVE

func Err

func Err(code int, reason string) WVE

func ErrF

func ErrF(code int, reasonz string, args ...interface{}) WVE

func ErrW

func ErrW(code int, reason string, cause error) WVE

func MaybeWrap

func MaybeWrap(err error) WVE

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL