Created
August 28, 2008 09:38
-
-
Save sr/7692 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require File.dirname(__FILE__) + '/code/git-wiki/vendor/sinatra/lib/sinatra' | |
class Foo < Exception; | |
error RuntimeError do | |
"hey!" | |
end | |
error Foo do | |
"fooooo" | |
end | |
get '/' do | |
raise Foo | |
"bla" | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment