Sha256: d7ff9c04aad9fc5561598a512f941cf74774801d7591542207f86d4b4e3c704f
Contents?: true
Size: 716 Bytes
Versions: 42
Compression:
Stored size: 716 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_dialog(event) begin yield rescue Exception => exception RubyApp::Log.exception(exception) RubyApp::Session.show_dialog(event, RubyApp::Elements::Dialogs::ExceptionDialog.new(exception)) end end end end end end
Version data entries
42 entries across 42 versions & 1 rubygems