File tree Expand file tree Collapse file tree 2 files changed +18
-0
lines changed
bindings/wasm/src/content_types
crates/xmtp_api_d14n/src/config Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -13,12 +13,24 @@ use crate::ErrorWrapper;
1313/// when surfaced to JavaScript.
1414#[ derive( Debug , Error , ErrorCode ) ]
1515pub enum ContentTypeError {
16+ /// Invalid data.
17+ ///
18+ /// Content type data failed validation. Not retryable.
1619 #[ error( "{0}" ) ]
1720 InvalidData ( String ) ,
21+ /// Timestamp out of range.
22+ ///
23+ /// Timestamp value is outside the representable range. Not retryable.
1824 #[ error( "{0}" ) ]
1925 TimestampOutOfRange ( String ) ,
26+ /// Codec error.
27+ ///
28+ /// Content type codec encoding or decoding failed. Not retryable.
2029 #[ error( "{0}" ) ]
2130 Codec ( String ) ,
31+ /// Crypto error.
32+ ///
33+ /// Cryptographic operation for content type failed. Not retryable.
2234 #[ error( "{0}" ) ]
2335 Crypto ( String ) ,
2436}
Original file line number Diff line number Diff line change @@ -13,8 +13,14 @@ pub struct ResolvedBackendConfig {
1313
1414#[ derive( Error , Debug , ErrorCode ) ]
1515pub enum BackendConfigError {
16+ /// Missing gateway host.
17+ ///
18+ /// D14n environment requires `gateway_host` to be set. Not retryable.
1619 #[ error( "D14n environment '{0:?}' requires gateway_host to be set" ) ]
1720 MissingGatewayHost ( XmtpEnv ) ,
21+ /// Auth requires gateway.
22+ ///
23+ /// Authentication (auth_callback or auth_handle) requires `gateway_host` to be set. Not retryable.
1824 #[ error( "Authentication (auth_callback or auth_handle) requires gateway_host to be set" ) ]
1925 AuthRequiresGateway ,
2026}
You can’t perform that action at this time.
0 commit comments