{"record":{"id":"11e86ad9618c04df","repo":"tailscale/tailscale","slug":"errnotconfigured","errorCode":"ErrNotConfigured","errorMessage":"not configured","messagePattern":"not configured","errorType":"error_code","errorClass":null,"httpStatus":null,"severity":"error","filePath":"util/syspolicy/setting/errors.go","lineNumber":12,"sourceCode":"// Copyright (c) Tailscale Inc & contributors\n// SPDX-License-Identifier: BSD-3-Clause\n\npackage setting\n\nimport (\n\t\"errors\"\n)\n\nvar (\n\t// ErrNotConfigured is returned when the requested policy setting is not configured.\n\tErrNotConfigured = errors.New(\"not configured\")\n\t// ErrTypeMismatch is returned when there's a type mismatch between the actual type\n\t// of the setting value and the expected type.\n\tErrTypeMismatch = errors.New(\"type mismatch\")\n\t// ErrNoSuchKey is returned by [DefinitionOf] when no policy setting\n\t// has been registered with the specified key.\n\t//\n\t// Until 2024-08-02, this error was also returned by a [Handler] when the specified\n\t// key did not have a value set. While the package maintains compatibility with this\n\t// usage of ErrNoSuchKey, it is recommended to return [ErrNotConfigured] from newer\n\t// [source.Store] implementations.\n\tErrNoSuchKey = errors.New(\"no such key\")\n)\n\n// ErrorText represents an error that occurs when reading or parsing a policy setting.\n// This includes errors due to permissions issues, value type and format mismatches,\n// and other platform- or source-specific errors. It does not include\n// [ErrNotConfigured] and [ErrNoSuchKey], as those correspond to unconfigured\n// policy settings rather than settings that cannot be read or parsed","sourceCodeStart":1,"sourceCodeEnd":30,"githubUrl":"https://github.com/tailscale/tailscale/blob/6e0912f97994f927632b34ae9e63b53d6516a6ac/util/syspolicy/setting/errors.go#L1-L30","documentation":"ErrNotConfigured is returned when the requested policy setting is not present in the snapshot: no policy source provides a value for that key. MaybeErrorText deliberately suppresses user-facing error text for this sentinel.","triggerScenarios":"Thrown at util/syspolicy/setting/errors.go:12 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Configure the policy setting in the relevant policy source","Fall back to the default value when this sentinel is returned"],"exampleFix":null,"handlingStrategy":"fallback","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"6e0912f97994f927632b34ae9e63b53d6516a6ac","analyzedAt":"2026-08-18T08:17:25.280Z","contentChangedAt":"2026-08-18T08:17:25.280Z","schemaVersion":2},"datasetVersion":"2026-09-14T00:17:10.932Z"}