Variable FRODO_ERROR_CODESConst
FRODO_ERROR_CODES: readonly [
"BROWSER_LOGIN_NO_SESSION",
"LOGIN_NO_STORED_PASSWORD",
"BROWSER_LOGIN_DEPLOYMENT_TYPE_UNKNOWN",
"BROWSER_LOGIN_REDIRECT_URI_NOT_SUPPORTED",
"BROWSER_LOGIN_FORGEOPS_CLIENT_ID_REQUIRED",
"BROWSER_LOGIN_CLASSIC_CLIENT_ID_REQUIRED",
"BROWSER_LOGIN_CLASSIC_SESSION_CAPTURE_REQUIRED",
"LOG_API_CREDENTIAL_MISSING",
"PROXY_AUTHENTICATION_REQUIRED",
"PROXY_TUNNEL_REFUSED",
"PROXY_CONNECTION_REFUSED",
"PROXY_CONNECTION_CLOSED",
"PROXY_UNREACHABLE",
"INSUFFICIENT_SCOPE",
"NO_AM_SESSION",
"DEVICE_LOGIN_TOKEN_NOT_ISSUED",
"CIMD_PROFILES_NOT_AVAILABLE",
"LOG_API_RATE_LIMITED",
"AIR_GAPPED",
] = ...
The error conditions that carry a stable identity (see
FrodoError.code).A message of the library states facts. How to fix the condition is advice in the words of one interface (an option of a command line, a field of a form, a tool argument), and the library does not know its caller. A caller that wants to give that advice recognises the condition by its code instead of parsing the message.
Codes are never renamed or reused. Add a code here when a caller needs to recognise a condition; a message without a code is not a promise.