Sha256: 6427dc6349855519f122a0a8f6091524c0530c9a4cd280d24e94b8e9d6cfaa49

Contents?: true

Size: 501 Bytes

Versions: 3

Compression:

Stored size: 501 Bytes

Contents

module FastlaneCore
  class Interface
    class FastlaneException < StandardError
      def prefix
        '[FASTLANE_EXCEPTION]'
      end

      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
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
fastlane_hotfix-2.165.1 fastlane_core/lib/fastlane_core/ui/errors/fastlane_exception.rb
fastlane_hotfix-2.165.0 fastlane_core/lib/fastlane_core/ui/errors/fastlane_exception.rb
fastlane_hotfix-2.187.0 fastlane_core/lib/fastlane_core/ui/errors/fastlane_exception.rb