Answer Posted / Priyal Gupta
"In Ruby, exceptions are handled using the rescue keyword. When an exception occurs, it is raised and can be caught using a begin...rescue block. Inside the rescue block, you can write code to handle the error or recover from it."
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers