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

Method validation

src/utils/error.ts:75–84  ·  view source on GitHub ↗

* 创建验证错误

(message: string, details?: Record<string, unknown>)

Source from the content-addressed store, hash-verified

73 * 创建验证错误
74 */
75 static validation(message: string, details?: Record<string, unknown>): AppError {
76 return new AppError({
77 message,
78 type: ErrorType.VALIDATION,
79 severity: ErrorSeverity.WARNING,
80 code: 'VALIDATION_ERROR',
81 details,
82 recoverable: true,
83 })
84 }
85
86 /**
87 * 创建API错误

Callers 2

addMethod · 0.80
validateStorageNameFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected