MCPcopy Create free account
hub / github.com/VirtualHotBar/NetMount / timeout

Method timeout

src/utils/error.ts:123–132  ·  view source on GitHub ↗

* 创建超时错误

(operation: string, timeoutMs: number)

Source from the content-addressed store, hash-verified

121 * 创建超时错误
122 */
123 static timeout(operation: string, timeoutMs: number): AppError {
124 return new AppError({
125 message: `操作 "${operation}" 超时 (${timeoutMs}ms)`,
126 type: ErrorType.TIMEOUT,
127 severity: ErrorSeverity.WARNING,
128 code: 'TIMEOUT_ERROR',
129 details: { operation, timeoutMs },
130 recoverable: true,
131 })
132 }
133
134 /**
135 * 创建未找到错误

Callers 2

robustFetchFunction · 0.80
fetchWithTimeoutFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected