Exception: Yoker::NetworkError
- Defined in:
- lib/yoker/errors.rb
Overview
Raised when network operations fail (downloading, etc.)
Instance Method Summary collapse
-
#initialize(operation, reason = nil) ⇒ NetworkError
constructor
A new instance of NetworkError.
Constructor Details
#initialize(operation, reason = nil) ⇒ NetworkError
Returns a new instance of NetworkError.
143 144 145 146 147 |
# File 'lib/yoker/errors.rb', line 143 def initialize(operation, reason = nil) = "Network operation failed: #{operation}" += " (#{reason})" if reason super() end |