Exception: RuAUR::Error::PackageNotFoundError

Inherits:
RuAUR::Error
  • Object
show all
Defined in:
lib/ruaur/error/package_not_found_error.rb

Instance Method Summary collapse

Constructor Details

#initialize(package = nil) ⇒ PackageNotFoundError

Returns a new instance of PackageNotFoundError.



2
3
4
5
# File 'lib/ruaur/error/package_not_found_error.rb', line 2

def initialize(package = nil)
    super("Package not found: #{package}") if (package)
    super("No package was specified") if (package.nil?)
end