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


Explain raise statement in Ruby?



Explain raise statement in Ruby?..

Answer / Peeush Prakash Saxena

The raise statement in Ruby is used to intentionally generate an exception. It allows you to specify the type and message of the exception. The basic structure is as follows:n```rubynraise ExceptionClass, 'exception message'n``

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Ruby Interview Questions

Explain about the command line options?

1 Answers  


Tell me how can you declare a block in ruby?

1 Answers  


What is the naming conventions for methods that return a boolean result?

1 Answers  


What are the three levels of method access control for classes and what do they signify? What do they imply about the method?

1 Answers  


what is the Notation used for denoting class variables in Ruby?

1 Answers  


Can you list out the few features of ruby?

1 Answers  


Explain about the programming language ruby?

1 Answers  


What are Ruby arrays and how they can be created?

1 Answers  


Explain break statement in Ruby?

1 Answers  


What are the different uses of ruby modules?

1 Answers  


How will you rename and delete a file in Ruby?

1 Answers  


Tell me how can we define ruby regular expressions?

1 Answers  


Categories