File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed
crates/matrix-sdk-indexeddb/src/crypto_store Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -39,6 +39,24 @@ pub struct IndexeddbSerializer {
39
39
store_cipher : Option < Arc < StoreCipher > > ,
40
40
}
41
41
42
+ #[ allow( dead_code) ]
43
+ #[ derive( Debug , thiserror:: Error ) ]
44
+ pub enum IndexeddbSerializerError {
45
+ #[ error( transparent) ]
46
+ Serialization ( #[ from] serde_json:: Error ) ,
47
+ #[ error( "DomException {name} ({code}): {message}" ) ]
48
+ DomException {
49
+ /// DomException code
50
+ code : u16 ,
51
+ /// Specific name of the DomException
52
+ name : String ,
53
+ /// Message given to the DomException
54
+ message : String ,
55
+ } ,
56
+ #[ error( transparent) ]
57
+ CryptoStoreError ( #[ from] CryptoStoreError ) ,
58
+ }
59
+
42
60
#[ derive( Debug , Deserialize , Serialize ) ]
43
61
#[ serde( untagged) ]
44
62
pub enum MaybeEncrypted {
You can’t perform that action at this time.
0 commit comments