r-lib / err

Ideas for error handling tools
1 stars 2 forks source link

Error classes #4

Open gaborcsardi opened 6 years ago

gaborcsardi commented 6 years ago

Ideally these should be in base, but not much happening towards that, so we might as well start collecting them here, I think.

Do we want some naming convention, e.g. should they have an _error suffix?

Not implemented

"not_implemented", ps throws this for methods that are not available on a platform.

OS errors

"os_error", see also #3, it contains errno, or the windows error code.

Timeouts

"timeout_error" E.g. processx should throw these, but right now it has "system_command_timeout_error".

HTTP errors

httr has a bunch of them.

Invalid argument

ps throws "invalid_argument".

Others

ps has