Sha256: 50451442f08aefb9ebee6dfbff7696b66e361e3f008cc451c51c2b2a3e207723

Contents?: true

Size: 941 Bytes

Versions: 9

Compression:

Stored size: 941 Bytes

Contents

class Autorespawn
    # Exception raised when a path cannot be resolved to a file on disk
    class FileNotFound < RuntimeError
        # @return [Pathname] the path to resolve
        attr_reader :path
        # @return [Array<Pathname>] the search path that was provided to resolve
        #   {#path}. It is always empty if {#path} is absolute
        attr_reader :search_path

        def initialize(path, search_path)
            @path, @search_path = path, search_path
        end
    end

    # Exception raised when a command that is only available in master/slave
    # mode is called in standalone mode
    class NotSlave < RuntimeError
    end

    # Exception raised when a command that is only available in master/slave
    # mode is called in standalone mode
    class NotFinished < RuntimeError
    end

    # Exception raised in Slave#spawn if the slave is already running
    class AlreadyRunning < RuntimeError
    end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
autorespawn-0.6.1 lib/autorespawn/exceptions.rb
autorespawn-0.6.0 lib/autorespawn/exceptions.rb
autorespawn-0.5.1 lib/autorespawn/exceptions.rb
autorespawn-0.5.0 lib/autorespawn/exceptions.rb
autorespawn-0.4.1 lib/autorespawn/exceptions.rb
autorespawn-0.4.0 lib/autorespawn/exceptions.rb
autorespawn-0.3.0 lib/autorespawn/exceptions.rb
autorespawn-0.2.1 lib/autorespawn/exceptions.rb
autorespawn-0.2.0 lib/autorespawn/exceptions.rb