MCPcopy Create free account
hub / github.com/astercloud/aster / createGenericError

Function createGenericError

ui/src/types/ui-protocol.ts:723–735  ·  view source on GitHub ↗
(
  code: string,
  surfaceId: string,
  message: string,
  details?: Record<string, unknown>,
)

Source from the content-addressed store, hash-verified

721 * 创建通用错误
722 */
723export function createGenericError(
724 code: string,
725 surfaceId: string,
726 message: string,
727 details?: Record<string, unknown>,
728): ProtocolError {
729 return {
730 code,
731 surfaceId,
732 message,
733 details,
734 };
735}
736
737// ==================
738// 工具函数类型

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected