Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


How do you handle exceptions in ruby code?



How do you handle exceptions in ruby code?..

Answer / 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

More Ruby Interview Questions

Tell us what is class libraries in ruby?

1 Answers  


Explain the three levels of access control for ruby methods?

1 Answers  


Explain the use of global variable $ in Ruby?

1 Answers  


Explain about variables?

1 Answers  


What is retry statement in ruby?

1 Answers  


Explain redo statement in Ruby?

1 Answers  


What are the different uses of ruby modules?

1 Answers  


How is visibility of methods changed in ruby?

1 Answers  


What is the difference between #== and #eql??

1 Answers  


What is the difference between static and dynamic scaffolding?

1 Answers  


Explain do while loop in ruby.

1 Answers  


Explain about garbage collection feature of ruby?

1 Answers  


Categories