• +91 9723535972
  • info@interviewmaterial.com

Ruby Interview Questions and Answers

Question - Explain raise statement in Ruby?

Answer -

The raise statement is used to raise an exception.

Syntax:

raise  
Or,

raise "Error Message"  
Or,

raise ExceptionType, "Error Message"  
Or,

raise ExceptionType, "Error Message" condition  

Comment(S)

Show all Coment

Leave a Comment




NCERT Solutions

 

Share your email for latest updates

Name:
Email:

Our partners