MCPcopy Index your code
hub / github.com/simstudioai/sim / isExecutionResourceLimitError

Function isExecutionResourceLimitError

apps/sim/lib/execution/resource-errors.ts:36–45  ·  view source on GitHub ↗
(
  error: unknown
)

Source from the content-addressed store, hash-verified

34}
35
36export function isExecutionResourceLimitError(
37 error: unknown
38): error is ExecutionResourceLimitError {
39 return (
40 error instanceof ExecutionResourceLimitError ||
41 (typeof error === 'object' &&
42 error !== null &&
43 (error as { code?: unknown }).code === EXECUTION_RESOURCE_LIMIT_CODE)
44 )
45}

Callers 5

startFunction · 0.90
setFunction · 0.90
doFlushFunction · 0.90
route.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected