Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
..
Failed to load latest commit information.
README.rb

README.rb

# coding: us-ascii

$VERBOSE = true

require_relative '../lib/exceptioncatchable'

include ExceptionCatchable

p catch_exception(SyntaxError){raise SyntaxError} #=> #<SyntaxError: SyntaxError>
p rescue_exception(Exception){raise SyntaxError}  #=> #<SyntaxError: SyntaxError>
p rescue_exception{raise SyntaxError}             #=> #<SyntaxError: SyntaxError>