HEX
Server: Apache
System: Linux pdx1-shared-a1-38 6.6.104-grsec-jammy+ #3 SMP Tue Sep 16 00:28:11 UTC 2025 x86_64
User: mmickelson (3396398)
PHP: 8.1.31
Disabled: NONE
Upload Files
File: //usr/share/rubygems-integration/all/gems/spring-2.1.1/lib/spring/errors.rb
module Spring
  class ClientError < StandardError; end

  class UnknownProject < StandardError
    attr_reader :current_dir

    def initialize(current_dir)
      @current_dir = current_dir
    end

    def message
      "Spring was unable to locate the root of your project. There was no Gemfile " \
        "present in the current directory (#{current_dir}) or any of the parent " \
        "directories."
    end
  end

  class MissingApplication < ClientError
    attr_reader :project_root

    def initialize(project_root)
      @project_root = project_root
    end

    def message
      "Spring was unable to find your config/application.rb file. " \
        "Your project root was detected at #{project_root}, so Spring " \
        "looked for #{project_root}/config/application.rb but it doesn't exist. You can " \
        "configure the root of your application by setting Spring.application_root in " \
        "config/spring.rb."
    end
  end

  class CommandNotFound < ClientError
  end
end