Class: IdentityExpiredError
The downstream service rejected the active caller's credentials.
Extends
Constructors
Constructor
new IdentityExpiredError(tokenFingerprint?: string): IdentityExpiredError;Parameters
| Parameter | Type |
|---|---|
tokenFingerprint? | string |
Returns
IdentityExpiredError
Overrides
Properties
_clientMessage?
protected readonly optional _clientMessage: string;Client-safe error message. When set, callers serializing the error to
a client (SSE, HTTP body) MUST prefer clientMessage over message.
message may contain raw upstream / SDK text including statement
fragments, internal object names, and correlation IDs.
Subclasses can set this in their constructor for a fixed sanitized
string. When unset, clientMessage defaults to a generic per-code
string (see the getter), and the raw message is kept server-side
only.
Inherited from
cause?
readonly optional cause: Error;Optional cause of the error
Inherited from
code
readonly code: "IDENTITY_EXPIRED" = "IDENTITY_EXPIRED";Error code for programmatic error handling
Overrides
context?
readonly optional context: Record<string, unknown>;Additional context for the error
Inherited from
isRetryable
readonly isRetryable: false = false;Whether this error type is generally safe to retry
Overrides
statusCode
readonly statusCode: 401 = 401;HTTP status code suggestion (can be overridden)
Overrides
tokenFingerprint?
readonly optional tokenFingerprint: string;Accessors
clientMessage
Get Signature
get clientMessage(): string;Sanitized message safe to forward to clients. Override in subclasses if a more specific default is appropriate.
Returns
string
Inherited from
Methods
toJSON()
toJSON(): Record<string, unknown>;Convert error to JSON for logging/serialization. Sensitive values in context are automatically redacted.
Returns
Record<string, unknown>
Inherited from
toString()
toString(): string;Create a human-readable string representation
Returns
string