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

Method code

d-engine-core/src/client/client_api_error.rs:360–368  ·  view source on GitHub ↗

Returns the error code associated with this error

(&self)

Source from the content-addressed store, hash-verified

358impl ClientApiError {
359 /// Returns the error code associated with this error
360 pub fn code(&self) -> ErrorCode {
361 match self {
362 ClientApiError::Network { code, .. } => *code,
363 ClientApiError::Protocol { code, .. } => *code,
364 ClientApiError::Storage { code, .. } => *code,
365 ClientApiError::Business { code, .. } => *code,
366 ClientApiError::General { code, .. } => *code,
367 }
368 }
369
370 /// Returns the error message
371 pub fn message(&self) -> &str {

Callers 4

fromMethod · 0.80
execute_commandMethod · 0.80
is_not_leaderFunction · 0.80

Calls

no outgoing calls

Tested by 1

execute_commandMethod · 0.64