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

Version Path
utopia-1.7.1 spec/utopia/exceptions/handler_spec/controller.rb
utopia-1.6.13 spec/utopia/exceptions/handler_spec/controller.rb
utopia-1.6.12 spec/utopia/exceptions/handler_spec/controller.rb
utopia-1.6.11 spec/utopia/exceptions/handler_spec/controller.rb
utopia-1.6.10 spec/utopia/exceptions/handler_spec/controller.rb
utopia-1.6.9 spec/utopia/exceptions/handler_spec/controller.rb
utopia-1.6.8 spec/utopia/exceptions/handler_spec/controller.rb
utopia-1.6.5 spec/utopia/exceptions/handler_spec/controller.rb
utopia-1.6.4 spec/utopia/exceptions/handler_spec/controller.rb
utopia-1.6.3 spec/utopia/exceptions/handler_spec/controller.rb
utopia-1.6.2 spec/utopia/exceptions/handler_spec/controller.rb
utopia-1.6.1 spec/utopia/exceptions/handler_spec/controller.rb
utopia-1.6.0 spec/utopia/exceptions/handler_spec/controller.rb
utopia-1.5.2 spec/utopia/exceptions/handler_spec/controller.rb
utopia-1.5.1 spec/utopia/exceptions/handler_spec/controller.rb
utopia-1.5.0 spec/utopia/exceptions/handler_spec/controller.rb
utopia-1.4.0 spec/utopia/exceptions/handler_spec/controller.rb
utopia-1.3.2 spec/utopia/exception_handler_spec/controller.rb