Answer Posted / 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 View All Answers