begin and resque ruby code example Example: rails begin rescue begin 3 + '4' rescue => e puts e.class puts e.message puts e.trace end