a guest Jun 24th, 2019 69 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $ ruby exception-1.rb
  2. Give me the dividend: 5
  3. Give me the divisor: 0
  4. exception-1.rb:4:in `/': divided by 0 (ZeroDivisionError)
  5.         from exception-1.rb:4:in `divide'
  6.         from exception-1.rb:21:in `<main>'
  7. $
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand