Exception: RuAUR::Error::PackageNotFound
- Inherits:
-
RuAUR::Error
- Object
- RuntimeError
- RuAUR::Error
- RuAUR::Error::PackageNotFound
- Defined in:
- lib/ruaur/error/package_not_found.rb
Instance Method Summary collapse
-
#initialize(package = nil) ⇒ PackageNotFound
constructor
A new instance of PackageNotFound.
Constructor Details
#initialize(package = nil) ⇒ PackageNotFound
Returns a new instance of PackageNotFound.
2 3 4 5 |
# File 'lib/ruaur/error/package_not_found.rb', line 2 def initialize(package = nil) super("Package not found: #{package}") if (package) super("No package was specified") if (package.nil?) end |