Sha256: 7e6629ff32005f27b53d61ffc9dbb1f1961bd4200e31335a191a55b10e6b8037
Contents?: true
Size: 702 Bytes
Versions: 24
Compression:
Stored size: 702 Bytes
Contents
module RubyApp module Elements module Dialogs require 'ruby_app/elements/dialogs/close_dialog' require 'ruby_app/log' require 'ruby_app/session' class ExceptionDialog < RubyApp::Elements::Dialogs::CloseDialog template_path(:all, File.dirname(__FILE__)) def initialize(exception) super() @exception = exception end def self.show(event) begin yield rescue Exception => exception RubyApp::Log.exception(exception) RubyApp::Session.show(event, RubyApp::Elements::Dialogs::ExceptionDialog.new(exception)) end end end end end end
Version data entries
24 entries across 24 versions & 1 rubygems