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 |
Explain about normal method class?
Tell me the role of modules and mixins in ruby?
Explain about Float, Dig and Max?
what is the difference extend and include?
In Ruby code, often it is observed that coder uses a short hand form of using an expression like array.map(&:method_name) instead of array.map { |element| element.method_name }. How this trick actually works?
What are the different environment variables present in the ruby?
Explain about portability?
Tell me what is the difference between calling super() and super call?
Explain retry statement in ruby.
what is the difference between put and putc statement?
Explain how Symbol is different from variables?
What is yield in ruby?