|
|
|
#1 |
|
Messages: n/a
Hébergeur: |
I wanted to know if there is someplace where I can get a list of all
the error messages generated by Ruby as well as explanations. -- Posted via http://www.ruby-forum.com/. |
|
|
|
#2 |
|
Messages: n/a
Hébergeur: |
On Nov 21, 2007, at 09:16 , Mahen Surinam wrote:
> I wanted to know if there is someplace where I can get a list of all > the error messages generated by Ruby as well as explanations. The QuickRef has the list of exceptions: http://www.zenspider.com/Languages/Ruby/QuickRef.html I know of no list of error messages that exceptions can contain outside of reading the source. -- Poor workers blame their tools. Good workers build better tools. The best workers get their tools to do the work for them. -- Syndicate Wars |
|
|
|
#3 |
|
Messages: n/a
Hébergeur: |
On Nov 21, 2007, at 12:16 PM, Mahen Surinam wrote:
> I wanted to know if there is someplace where I can get a list of all > the error messages generated by Ruby as well as explanations. > -- > Posted via http://www.ruby-forum.com/. Not really -- for a variety of reasons. 1. Error messages come from an indefinite number of sources -- from the Ruby interpreter itself, from built-in library classes, from standard library classes, from add-on libraries, etc. 2. The majority of error messages come from classes derived from Exception. New Exception subclasses can derived by any developer. Another reason there can be no fixed list of error messages. 3. Any Ruby code that creates a new Exception object by executing 'raise' can customize the error message of that particular exception object. Another source of indefinitely many error messages. OTOH, if you are really asking "where can a list of the standard Exception subclasses be found?", the Pickaxe book is a good place to look. Regards, Morton |
|
![]() |
| Outils de la discussion | |
|
|