Home
Recent Q&A
Java
Cloud
JavaScript
Python
SQL
PHP
HTML
C++
Data Science
DBMS
Devops
Hadoop
Machine Learning
Azure
Blockchain
Devops
Ask a Question
Explain raise statement in Ruby?
Home
Ruby
Explain raise statement in Ruby?
0
votes
asked
Nov 15, 2021
in
Ruby
by
Robin
Explain raise statement in Ruby?
rraise-statement
Please
log in
or
register
to answer this question.
1
Answer
0
votes
answered
Nov 15, 2021
by
Robin
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
...