ruby raise error and add line code example Example: ruby rase exception raise StandardError.new "This is an exception"