Raising Exceptions : raise « Statement « Ruby






Raising Exceptions



raise "An error has occurred"

 








Related examples in the same category

1.Raise exception from constructor
2.raise one on your own with the raise method from Kernel
3.raise ArgumentError
4.Raise IndexError