[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

List of Eror Messages

Mahen Surinam

11/21/2007 5:17:00 PM

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-....

2 Answers

Eric Hodel

11/21/2007 9:16:00 PM

0

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/Qui...

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



Morton Goldberg

11/21/2007 10:19:00 PM

0

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-....

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