Skip to main content

Function: isTransientStorageError()

isTransientStorageError(e): boolean

Defined in: packages/agentos/src/safety/runtime/SpendMeter.ts:212

The store errors worth a second try: Postgres serialization failures and deadlocks (40001, 40P01), its connection class (08xxx) and an administrator's shutdown (57P01); SQLite's busy and locked; and the network errors a pool reports when a connection drops.

Parameters​

e​

unknown

Returns​

boolean