What are some built-in ruby class exceptions.
Answer / Vinod Kumar Pal
Ruby provides various built-in classes for exceptions. Some common exceptions include:n1. StandardErrorn - This is the base exception class.n2. Exceptionn - A generic exception class.n3. RuntimeErrorn - Base class for errors that occur during program execution.n4. ArgumentErrorn - Raised when an argument passed to a method or function is not valid.n5. NameErrorn - Raised when a variable or method does not exist in the current scope.
| Is This Answer Correct ? | 0 Yes | 0 No |
What are some advantages of using ruby?
What is the use of interpolation in ruby?
What is mvc and why do we use it?
How is class methods defined in ruby?
What are Ruby iterators?
How to check whether a directory exist or not in Ruby?
What are freezing string in Ruby?
Tell me how you define instance variable, global variable and class variable in ruby?
Name some operators used in ruby.
mention what is the difference between a single quote and double quote?
Where does a scope change in a ruby program?
Explain class libraries in ruby.