MCPcopy Create free account
hub / github.com/deventlab/d-engine / server_error

Function server_error

d-engine-server/src/api/embedded_client.rs:87–93  ·  view source on GitHub ↗
(msg: String)

Source from the content-addressed store, hash-verified

85}
86
87fn server_error(msg: String) -> ClientApiError {
88 ClientApiError::Business {
89 code: ErrorCode::Uncategorized,
90 message: msg,
91 required_action: None,
92 }
93}
94
95/// Unwrap a `ClientResponsePayload` as a `ReadResults`, returning a
96/// `Protocol { InvalidResponse }` error for any other variant.

Callers 9

map_error_responseMethod · 0.85
putMethod · 0.85
get_with_consistencyMethod · 0.85
deleteMethod · 0.85
scan_prefixMethod · 0.85
put_with_ttlMethod · 0.85
compare_and_swapMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected