ProtonMail / go-proton-api

Proton API library used by Go-based clients and tools
MIT License
129 stars 17 forks source link

feat: Implement NetError (and rename proton.Error to proton.APIError) #24

Closed jameshoulahan closed 1 year ago

jameshoulahan commented 1 year ago

NetError is an error type returned when no response was received from the API. This allows callers to determine whether their call failed due to a network level error.

Additionally, proton.APIError now has Status to see what the status code was in the response that triggered the error.