DataStoreNonRetryableLoadError
This item only works when running on the server. Server
Wraps a datastore-operation failure during a session-locked load so it is distinguishable from lock contention. Op failures (e.g. 509) will not resolve by retrying -- Roblox already retries internally -- so we fail fast rather than grinding the acquire backoff, while lock contention (a successful op that returns a locked profile) keeps retrying. The original error is preserved.
Functions
new
Wraps an inner error so it is treated as non-retryable during a session-locked load.
isNonRetryableLoadError
DataStoreNonRetryableLoadError.isNonRetryableLoadError(err: any) → booleanReturns true if the given error is a DataStoreNonRetryableLoadError.
unwrapLoadError
DataStoreNonRetryableLoadError.unwrapLoadError(err: any) → anyReturns the original inner error if the given error is a DataStoreNonRetryableLoadError, otherwise returns the error unchanged.