class PartyFoul::RacklessExceptionHandler
Public Class Methods
handle(exception, env)
click to toggle source
This handler will pass the exception and working environment from Rack off to a processor. The default PartyFoul
processor will work synchronously. Processor adapters can be written to push this logic to a background job if desired.
@param [Exception, Hash]
# File lib/party_foul/rackless_exception_handler.rb, line 7 def self.handle(exception, env) self.new(exception, clean_env(env)).run end
new(exception, env)
click to toggle source
Uses the Rackless IssueRenderer for a rackless environment
@param [Exception, Hash]
# File lib/party_foul/rackless_exception_handler.rb, line 14 def initialize(exception, env) self.rendered_issue = PartyFoul::IssueRenderers::Rackless.new(exception, env) end