Exception: RuAUR::Error::PackageNotFoundError
- Inherits:
-
RuAUR::Error
- Object
- RuntimeError
- RuAUR::Error
- RuAUR::Error::PackageNotFoundError
- Defined in:
- lib/ruaur/error/package_not_found_error.rb
Instance Method Summary collapse
-
#initialize(package = nil) ⇒ PackageNotFoundError
constructor
A new instance of PackageNotFoundError.
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 |