Exception: Yoker::NetworkError

Inherits:
Error
  • Object
show all
Defined in:
lib/yoker/errors.rb

Overview

Raised when network operations fail (downloading, etc.)

Instance Method Summary collapse

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)
  message = "Network operation failed: #{operation}"
  message += " (#{reason})" if reason
  super(message)
end