class PantographCore::Interface::PantographException
Public Instance Methods
caused_by_calling_ui_method?(method_name: nil)
click to toggle source
# File pantograph_core/lib/pantograph_core/ui/errors/pantograph_exception.rb, line 8 def caused_by_calling_ui_method?(method_name: nil) return false if backtrace.nil? || backtrace[0].nil? || method_name.nil? first_frame = backtrace[0] if first_frame.include?(method_name) && first_frame.include?('interface.rb') true else false end end
prefix()
click to toggle source
# File pantograph_core/lib/pantograph_core/ui/errors/pantograph_exception.rb, line 4 def prefix '[PANTOGRAPH_EXCEPTION]' end