MCPcopy Index your code
hub / github.com/coder/coder / Error

Method Error

coderd/rbac/error.go:78–83  ·  view source on GitHub ↗

Error implements the error interface.

()

Source from the content-addressed store, hash-verified

76
77// Error implements the error interface.
78func (e UnauthorizedError) Error() string {
79 if flag.Lookup("test.v") != nil {
80 return e.longError()
81 }
82 return errUnauthorized
83}
84
85// Internal allows the internal error message to be logged.
86func (e *UnauthorizedError) Internal() error {

Callers 10

JSONStringFunction · 0.45
TestParseAllowListEntryFunction · 0.45
TestParseAllowListLimitFunction · 0.45
TestExpandScopeFunction · 0.45
TestCacheFunction · 0.45
testAuthorizeFunction · 0.45
TestRoleByNameFunction · 0.45
CompileFunction · 0.45
requireConvertFunction · 0.45
ValidateFunction · 0.45

Calls 1

longErrorMethod · 0.95

Tested by 7

TestParseAllowListEntryFunction · 0.36
TestParseAllowListLimitFunction · 0.36
TestExpandScopeFunction · 0.36
TestCacheFunction · 0.36
testAuthorizeFunction · 0.36
TestRoleByNameFunction · 0.36
requireConvertFunction · 0.36