List of Eror Messages

M

Mahen Surinam

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

Morton Goldberg

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.

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,270
Messages
2,571,353
Members
48,038
Latest member
HunterDela

Latest Threads

Top