Exception: CurlDownloadStrategyError
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- CurlDownloadStrategyError
- Defined in:
- exceptions.rb
Overview
Raised in CurlDownloadStrategy#fetch.
Direct Known Subclasses
Instance Method Summary collapse
-
#initialize(url) ⇒ CurlDownloadStrategyError
constructor
A new instance of CurlDownloadStrategyError.
Constructor Details
#initialize(url) ⇒ CurlDownloadStrategyError
Returns a new instance of CurlDownloadStrategyError.
635 636 637 638 639 640 641 642 |
# File 'exceptions.rb', line 635 def initialize(url) case url when %r{^file://(.+)} super "File does not exist: #{Regexp.last_match(1)}" else super "Download failed: #{url}" end end |