vendor/plugins/exception_notification/lib/exception_notifiable.rb
# When the action being executed is letting SEN handle the exception completely
When the action being executed is letting SEN handle the exception completely
When the action being executed is letting SEN handle the exception completely
def rescue_action_in_public(exception)
      verbose = self.class.exception_notifiable_verbose
      puts "[RESCUE STYLE] rescue_action_in_public" if verbose
      status_code = status_code_for_exception(exception)
      if status_code == '200'
        notify_and_render_error_template(status_code, request, exception, ExceptionNotifier.get_view_path_for_class(exception, verbose), verbose)
      else
        notify_and_render_error_template(status_code, request, exception, ExceptionNotifier.get_view_path_for_status_code(status_code, verbose), verbose)
      end
    end
def rescue_action_in_public ( exception ) verbose = self . class . exception_notifiable_verbose puts "[RESCUE STYLE] rescue_action_in_public" if verbose status_code = status_code_for_exception ( exception ) if status_code == '200' notify_and_render_error_template ( status_code , request , exception , ExceptionNotifier . get_view_path_for_class ( exception , verbose ) , verbose ) else notify_and_render_error_template ( status_code , request , exception , ExceptionNotifier . get_view_path_for_status_code ( status_code , verbose ) , verbose ) end end
When the action being executed is letting SEN handle the exception completely
When the action being executed is letting SEN handle the exception completely
# If the error class is NOT listed in the rails_errror_class hash then we get a generic 500 error: # OTW if the error class is listed, but has a blank code or the code is == '200' then we get a custom error layout rendered # OTW the error class is listed!
exception
<not_specific>