Sha256: abbf2d9a3a24ba971462cb1520cd45f86496bc272e4a46866d9716328abac4e9
Contents?: true
Size: 377 Bytes
Versions: 18
Compression:
Stored size: 377 Bytes
Contents
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['fatal'] raise TharSheBlows.new("Yarrh!") else success! :content => 'Error Will Robertson', :type => 'text/plain' end end
Version data entries
18 entries across 18 versions & 1 rubygems