Sha256: a25e19a2b8ecdc25ac5681caf649867d9e1f89be7fa72e0b5f704d1932eb8fcb

Contents?: true

Size: 1.22 KB

Versions: 10

Compression:

Stored size: 1.22 KB

Contents

module Autoproj
    class ConfigError < RuntimeError
        attr_accessor :file
        def initialize(file = nil)
            super
            @file = file
        end
    end
    class InternalError < RuntimeError; end

    # Exception raised when trying to resolve a package name and it failed
    class PackageNotFound < ConfigError
    end

    class InputError < RuntimeError; end

    # Exception raised when a caller requires to use an excluded package
    class ExcludedPackage < ConfigError
        attr_reader :name
        def initialize(name)
            @name = name
        end
    end

    # Exception raised when an unknown package is encountered
    class UnknownPackage < ConfigError
        attr_reader :name
        def initialize(name)
            @name = name
        end
    end

    class MissingOSDep < ConfigError; end

    # Exception raised by
    # PackageSelection#filter_excluded_and_ignored_packages when a given
    # selection is completely excluded
    class ExcludedSelection < ConfigError
        attr_reader :selection
        def initialize(selection)
            @selection = selection
        end
    end

    class UserError < RuntimeError; end

    class WorkspaceAlreadyCreated < RuntimeError; end
end


Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
autoproj-2.0.0.rc3 lib/autoproj/exceptions.rb
autoproj-2.0.0.rc2 lib/autoproj/exceptions.rb
autoproj-2.0.0.rc1 lib/autoproj/exceptions.rb
autoproj-2.0.0.b7 lib/autoproj/exceptions.rb
autoproj-2.0.0.b6 lib/autoproj/exceptions.rb
autoproj-2.0.0.b5 lib/autoproj/exceptions.rb
autoproj-2.0.0.b4 lib/autoproj/exceptions.rb
autoproj-2.0.0.b3 lib/autoproj/exceptions.rb
autoproj-2.0.0.b2 lib/autoproj/exceptions.rb
autoproj-2.0.0.b1 lib/autoproj/exceptions.rb