Ruby Cheat Sheet

ruby

begin
    1/0
rescue Exception => e
    p e
end
python

try:
    y = ALPHABET.index(char)
except ValueError:
    return char
javascript

go

rust