Returns the error code associated with this error
(&self)
| 358 | impl 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 { |
no outgoing calls