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

Method network

src/utils/error.ts:109–118  ·  view source on GitHub ↗

* 创建网络错误

(message: string, cause?: Error)

Source from the content-addressed store, hash-verified

107 * 创建网络错误
108 */
109 static network(message: string, cause?: Error): AppError {
110 return new AppError({
111 message,
112 type: ErrorType.NETWORK,
113 severity: ErrorSeverity.ERROR,
114 code: 'NETWORK_ERROR',
115 recoverable: true,
116 cause,
117 })
118 }
119
120 /**
121 * 创建超时错误

Callers 2

robustFetchFunction · 0.80
fetchWithTimeoutFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected