Sha256: 60c011bc93caa06a4f9c17c5c967b6abe500adca350031be22c8b0fb2f3784d7
Contents?: true
Size: 401 Bytes
Versions: 40
Compression:
Stored size: 401 Bytes
Contents
prepend Actions class TharSheBlows < StandardError end on 'blow' do raise TharSheBlows.new("Arrrh!") end # The ExceptionHandler middleware will redirect here when an exception occurs. If this also fails, things get ugly. on 'exception' do |request| if request.params['fatal'] raise TharSheBlows.new("Yarrh!") else succeed! :content => 'Error Will Robertson', :type => 'text/plain' end end
Version data entries
40 entries across 40 versions & 1 rubygems