Sha256: e064548aad92d3881e4cb2a729f08d00c024ed9085e1ebc0fdb16478d5689370

Contents?: true

Size: 829 Bytes

Versions: 4

Compression:

Stored size: 829 Bytes

Contents

<%= @exception.class.to_s =~ /^[aeiou]/i ? 'An' : 'A' %> <%= @exception.class %> occurred in <%= @kontroller.controller_name %>#<%= @kontroller.action_name %>:

  <%= raw @exception.message %>
  <%= raw @backtrace.first %>

<%
    sections = @sections.map do |section|
      begin
        summary = render(section).strip
        unless summary.blank?
          title = render("title", title: section).strip
          "#{title}\n\n#{summary.gsub(/^/, "  ")}\n\n"
        end

      rescue Exception => e
        title = render("title", title: section).strip
        summary = ["ERROR: Failed to generate exception summary:", [e.class.to_s, e.message].join(": "), e.backtrace && e.backtrace.join("\n")].compact.join("\n\n")

        [title, summary.gsub(/^/, "  "), nil].join("\n\n")
      end
    end.join
%>

<%= raw sections %>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
exception_notification-4.5.0 lib/exception_notifier/views/exception_notifier/exception_notification.text.erb
exception_notification-4.4.3 lib/exception_notifier/views/exception_notifier/exception_notification.text.erb
exception_notification-4.4.1 lib/exception_notifier/views/exception_notifier/exception_notification.text.erb
exception_notification-4.4.0 lib/exception_notifier/views/exception_notifier/exception_notification.text.erb