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