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

Tell me how do you remove nil values in array using ruby?

1 Answers  


what is the role of sub-directory app/controllers and app/helpers?

1 Answers  


Explain when self.up and self.down method is used?

1 Answers  


what is the difference between a gem and a plugin in Ruby?

1 Answers  


Tell us how would you implement hash in ruby internally?

1 Answers  


What are the data types in ruby?

1 Answers  


Tell me how can we define ruby regular expressions?

1 Answers  


How do you handle exceptions in ruby code?

1 Answers  


What are the loops in ruby?

1 Answers  


What function converts all html special symbols to html entities in ruby?

1 Answers  


What happens when a value is too big for fixnum?

1 Answers  


Tell me what is the difference between calling super and calling super()?

1 Answers  


Categories