require_relative 'fastlane_exception'

module FastlaneCore
  class Interface
    class FastlaneError < FastlaneException
      attr_reader :show_github_issues
      attr_reader :error_info

      def initialize(show_github_issues: false, error_info: nil)
        @show_github_issues = show_github_issues
        @error_info = error_info
      end

      def prefix
        '[USER_ERROR]'
      end
    end
  end
end

class Exception
  def fastlane_should_report_metrics?
    # https://github.com/fastlane/fastlane/issues/11913
    return false
  end
end
