I have already released quite a few libraries. I have not yet decided what to name my exceptions. The standard Ruby library always names exceptions as such (noun Exception or Error ) - for example
- Runtimeerrror
- Eoferror
- Threaderror
Rails, by contrast, use abbreviated exception names such as RecordInvalid , etc.
If I write libraries, and most of them are not Rails related, what naming convention should I use? I have to admit that Rails' short names "appeal to me more, because when an exception occurs, you already see that this exception or some kind of error, because it appears in the logs / debugger / stderr.
Julik source share