Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/juju/errors
/ functions
Functions
158 in github.com/juju/errors
⨍
Functions
158
◇
Types & classes
24
Function
NewNotImplemented
NewNotImplemented returns an error which wraps err and satisfies Is(err, NotImplemented) and the Locationer interface.
errortypes.go:222
Function
NewNotProvisioned
NewNotProvisioned returns an error which wraps err and satisfies Is(err, NotProvisioned) and the Locationer interface.
errortypes.go:318
Function
NewNotSupported
NewNotSupported returns an error which satisfies Is(err, NotSupported) and the Locationer interface.
errortypes.go:270
Function
NewNotValid
NewNotValid returns an error which wraps err and satisfies Is(err, NotValid) and the Locationer interface.
errortypes.go:294
Function
NewNotYetAvailable
NewNotYetAvailable returns an error which wraps err and satisfies Is(err, NotYetAvailable) and the Locationer interface.
errortypes.go:462
Function
NewQuotaLimitExceeded
NewQuotaLimitExceeded returns an error which wraps err and satisfies Is(err, QuotaLimitExceeded) and the Locationer interface.
errortypes.go:438
Function
NewTimeout
NewTimeout returns an error which wraps err and satisfies Is(err, Timeout) and the Locationer interface.
errortypes.go:126
Function
NewUnauthorized
NewUnauthorized returns an error which wraps err and satisfies Is(err, Unathorized) and the Locationer interface.
errortypes.go:198
Function
NewUserNotFound
NewUserNotFound returns an error which wraps err and satisfies Is(err, UserNotFound) and the Locationer interface.
errortypes.go:174
Function
NotAssignedf
NotAssignedf returns an error which satisfies Is(err, NotAssigned) and the Locationer interface.
errortypes.go:333
Function
NotFoundf
NotFoundf returns an error which satisfies Is(err, NotFound) and the Locationer interface.
errortypes.go:141
Function
NotImplementedf
NotImplementedf returns an error which satisfies Is(err, NotImplemented) and the Locationer interface.
errortypes.go:213
Function
NotProvisionedf
NotProvisionedf returns an error which satisfies Is(err, NotProvisioned) and the Locationer interface.
errortypes.go:309
Function
NotSupportedf
NotSupportedf returns an error which satisfies Is(err, NotSupported) and the Locationer interface.
errortypes.go:261
Function
NotValidf
NotValidf returns an error which satisfies Is(err, NotValid) and the Locationer interface.
errortypes.go:285
Function
NotYetAvailablef
NotYetAvailablef returns an error which satisfies Is(err, NotYetAvailable) and the Locationer interface.
errortypes.go:453
Function
QuotaLimitExceededf
QuotaLimitExceededf returns an error which satisfies Is(err, QuotaLimitExceeded) and the Locationer interface.
errortypes.go:429
Method
StackTrace
StackTrace returns one string for each location recorded in the stack of errors. The first value is the originating error, with a line for each other
error.go:214
Function
Test
(t *testing.T)
package_test.go:14
Method
TestAllErrors
(c *gc.C)
errortypes_test.go:138
Method
TestAnnotate
(c *gc.C)
functions_test.go:55
Method
TestAnnotatef
(c *gc.C)
functions_test.go:67
Method
TestAs
(c *gc.C)
functions_test.go:346
Method
TestAsType
(c *gc.C)
functions_test.go:465
Method
TestCause
(c *gc.C)
functions_test.go:164
Method
TestDeferredAnnotatef
(c *gc.C)
functions_test.go:79
Method
TestDeferredAnnotatef
(c *gc.C)
errortypes_test.go:108
Method
TestErrorStack
(c *gc.C)
functions_test.go:196
Method
TestErrorString
err varSomeErr
error_test.go:21
Method
TestErrorf
(c *gc.C)
functions_test.go:34
Method
TestFormat
(c *gc.C)
functions_test.go:306
Method
TestHasType
(c *gc.C)
functions_test.go:445
Method
TestHideErrorStillReturnsErrorString
(c *gc.C)
functions_test.go:392
Method
TestIs
(c *gc.C)
functions_test.go:363
Method
TestMask
(c *gc.C)
functions_test.go:142
Method
TestMaskf
(c *gc.C)
functions_test.go:153
Method
TestNew
(c *gc.C)
functions_test.go:25
Method
TestNewErr
(c *gc.C)
error_test.go:142
Method
TestNewErrWithCause
(c *gc.C)
error_test.go:156
Method
TestQuietWrappedErrorStillSatisfied
(c *gc.C)
functions_test.go:399
Method
TestSetLocation
(c *gc.C)
functions_test.go:382
Method
TestSetLocationWithNilError
(c *gc.C)
functions_test.go:378
Method
TestThatYouAlwaysGetError
TestThatYouAlwaysGetError is a regression test for checking that the wrap constructor for our error types always returns a valid error object even if
errortypes_test.go:174
Method
TestTrace
(c *gc.C)
functions_test.go:43
Method
TestUnwrapNewErrGivesNil
(c *gc.C)
error_test.go:170
Method
TestWithType
(c *gc.C)
errortypes_test.go:186
Method
TestWithTypeNil
(c *gc.C)
errortypes_test.go:181
Method
TestWrap
(c *gc.C)
functions_test.go:98
Method
TestWrapOfNil
(c *gc.C)
functions_test.go:112
Method
TestWrapf
(c *gc.C)
functions_test.go:121
Method
TestWrapfOfNil
(c *gc.C)
functions_test.go:133
Function
Timeoutf
Timeoutf returns an error which satisfies Is(err, Timeout) and the Locationer interface.
errortypes.go:117
Function
Unauthorizedf
Unauthorizedf returns an error that satisfies Is(err, Unauthorized) and the Locationer interface.
errortypes.go:189
Method
Underlying
Underlying returns the previous error in the error stack, if any. A client should not ever really call this method. It is used to build the error sta
error.go:136
Method
Unwrap
()
error.go:77
Method
Unwrap
Unwrap is a synonym for Underlying, which allows Err to be used with the Unwrap, Is and As functions in Go's standard `errors` library.
error.go:225
Method
Unwrap
Unwrap an errWithType gives the underlying Err
errortypes.go:75
Function
UserNotFoundf
UserNotFoundf returns an error which satisfies Is(err, UserNotFound) and the Locationer interface.
errortypes.go:165
← previous
101–158 of 158, ranked by callers