shore_protocol/error.rs
1use serde::{Deserialize, Serialize};
2
3/// SWP error codes per ยง3.6.
4#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq)]
5#[serde(rename_all = "snake_case")]
6pub enum ErrorCode {
7 ProtocolError,
8 InvalidRequest,
9 NotFound,
10 Busy,
11 ProviderError,
12 Timeout,
13 InternalError,
14}