Gleiphir2769 commented on issue #1142:
URL: 
https://github.com/apache/pulsar-client-go/issues/1142#issuecomment-1855996204

   I have searched all errors pulsar-client-go returned with key words 
`fmt.Errorf` and `errors.New`. Unfortunataly, there are almost no existing 
Error struct that can be exposed (e.g. errConnectionClosed). In most cases, 
anonymous errors are returned directly.
   
   <img width="897" alt="image" 
src="https://github.com/apache/pulsar-client-go/assets/50270213/e1712d16-dbef-48f3-966a-911b9382e980";>
   
   <img width="897" alt="image" 
src="https://github.com/apache/pulsar-client-go/assets/50270213/15ed85b2-d721-45b5-a51d-691624d967bc";>
   
   
   
   > sorting out all the errors 
   
   I think it's too difficult to sorting out ALL errors. The better way is to 
sort out errors relative producer/consumer public API. What do you think? 
@tisonkun 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to