@@ -8,6 +8,8 @@ pub type NatsrpyResult<T> = Result<T, NatsrpyError>;
88pub enum NatsrpyError {
99 #[ error( transparent) ]
1010 StdIOError ( #[ from] std:: io:: Error ) ,
11+ #[ error( transparent) ]
12+ UnknownError ( #[ from] Box < dyn std:: error:: Error + Send + Sync + ' static > ) ,
1113 #[ error( "NATS session error: {0}" ) ]
1214 SessionError ( String ) ,
1315 #[ error( "Invalid arguemnt: {0}" ) ]
@@ -43,32 +45,40 @@ pub enum NatsrpyError {
4345 #[ error( transparent) ]
4446 UnsubscribeError ( #[ from] async_nats:: UnsubscribeError ) ,
4547 #[ error( transparent) ]
46- KeyValueError ( #[ from] async_nats:: jetstream:: context:: KeyValueError ) ,
48+ JSKVError ( #[ from] async_nats:: jetstream:: context:: KeyValueError ) ,
4749 #[ error( transparent) ]
48- CreateKeyValueError ( #[ from] async_nats:: jetstream:: context:: CreateKeyValueError ) ,
50+ JSKVCreateError ( #[ from] async_nats:: jetstream:: context:: CreateKeyValueError ) ,
4951 #[ error( transparent) ]
50- CreateStreamError ( #[ from] async_nats:: jetstream:: context:: CreateStreamError ) ,
52+ JSStreamCreateError ( #[ from] async_nats:: jetstream:: context:: CreateStreamError ) ,
5153 #[ error( transparent) ]
52- GetStreamError ( #[ from] async_nats:: jetstream:: context:: GetStreamError ) ,
54+ JSStreamGetError ( #[ from] async_nats:: jetstream:: context:: GetStreamError ) ,
5355 #[ error( transparent) ]
54- KVUpdateError ( #[ from] async_nats:: jetstream:: context:: UpdateKeyValueError ) ,
56+ JSKVUpdateError ( #[ from] async_nats:: jetstream:: context:: UpdateKeyValueError ) ,
5557 #[ error( transparent) ]
5658 JSPublishError ( #[ from] async_nats:: jetstream:: context:: PublishError ) ,
5759 #[ error( transparent) ]
60+ JSObjectStoreError ( #[ from] async_nats:: jetstream:: context:: ObjectStoreError ) ,
61+ #[ error( transparent) ]
5862 KVEntryError ( #[ from] async_nats:: jetstream:: kv:: EntryError ) ,
5963 #[ error( transparent) ]
6064 KVPutError ( #[ from] async_nats:: jetstream:: kv:: PutError ) ,
6165 #[ error( transparent) ]
62- DeleteError ( #[ from] async_nats:: jetstream:: kv:: DeleteError ) ,
66+ KVUpdateError ( #[ from] async_nats:: jetstream:: kv:: UpdateError ) ,
67+ #[ error( transparent) ]
68+ KVCreateError ( #[ from] async_nats:: jetstream:: kv:: CreateError ) ,
69+ #[ error( transparent) ]
70+ KVWatcherError ( #[ from] async_nats:: jetstream:: kv:: WatcherError ) ,
71+ #[ error( transparent) ]
72+ KVHistoryError ( #[ from] async_nats:: jetstream:: kv:: HistoryError ) ,
73+ #[ error( transparent) ]
74+ KVStatusError ( #[ from] async_nats:: jetstream:: kv:: StatusError ) ,
6375 #[ error( transparent) ]
6476 StreamDirectGetError ( #[ from] async_nats:: jetstream:: stream:: DirectGetError ) ,
6577 #[ error( transparent) ]
6678 StreamInfoError ( #[ from] async_nats:: jetstream:: stream:: InfoError ) ,
6779 #[ error( transparent) ]
6880 StreamPurgeError ( #[ from] async_nats:: jetstream:: stream:: PurgeError ) ,
6981 #[ error( transparent) ]
70- UnknownError ( #[ from] Box < dyn std:: error:: Error + Send + Sync + ' static > ) ,
71- #[ error( transparent) ]
7282 PullMessageError ( #[ from] async_nats:: jetstream:: consumer:: pull:: MessagesError ) ,
7383 #[ error( transparent) ]
7484 ConsumerError ( #[ from] async_nats:: jetstream:: stream:: ConsumerError ) ,
@@ -81,8 +91,6 @@ pub enum NatsrpyError {
8191 #[ error( transparent) ]
8292 ConsumerUpdateError ( #[ from] async_nats:: jetstream:: stream:: ConsumerUpdateError ) ,
8393 #[ error( transparent) ]
84- ObjectStoreError ( #[ from] async_nats:: jetstream:: context:: ObjectStoreError ) ,
85- #[ error( transparent) ]
8694 ObjectStoreGetError ( #[ from] async_nats:: jetstream:: object_store:: GetError ) ,
8795 #[ error( transparent) ]
8896 ObjectStorePutError ( #[ from] async_nats:: jetstream:: object_store:: PutError ) ,
0 commit comments