Documentation ¶
Index ¶
Constants ¶
View Source
const ( NoError = Code(0) Canceled = Code(1) Unknown = Code(2) InvalidArgument = Code(3) DeadlineExceeded = Code(4) NotFound = Code(5) AlreadyExists = Code(6) PermissionDenied = Code(7) ResourceExhausted = Code(8) FailedPrecondition = Code(9) Aborted = Code(10) OutOfRange = Code(11) Unimplemented = Code(12) Internal = Code(13) DataLoss = Code(15) Unauthenticated = Code(16) RuntimePanic = Code(100) BadRoute = Code(101) Malformed = Code(102) )
Error constants from twirp
Variables ¶
This section is empty.
Functions ¶
func DefaultErrorMessage ¶
Types ¶
type APIError ¶
type IStack ¶
type IStack interface {
StackTrace() errors.StackTrace
}
IStack declares that the error has stacktrace. It's compatible with github.com/pkg/errors package.
Click to show internal directories.
Click to hide internal directories.