nats.rs icon indicating copy to clipboard operation
nats.rs copied to clipboard

Convert AuthError to Error<AuthErrorKind>

Open nepalez opened this issue 10 months ago • 0 comments

This PR is a part of error specialization initiated by the https://github.com/nats-io/nats.rs/pull/1047

See the initial discussion of the change in this draft PR (to be removed later, after processing the feedback by @Jarema and creating smaller PR-s from its commits).

This part is devoted to convertion of the AuthError into a specialization of the error::Error<T> generic. The error messages are moved to the implementation of its kind AuthErrorKind.

nepalez avatar Aug 14 '23 19:08 nepalez