Exception: PackerFiles::Core::URLException

Inherits:
Error
  • Object
show all
Defined in:
lib/PackerFiles/Core/Exceptions.rb

Overview

The URL Exception is generated if a URL cannot be opened and it’s contents cannot be read.

Instance Attribute Summary

Attributes inherited from Error

#message

Instance Method Summary collapse

Constructor Details

#initialize(url, inner_obj) ⇒ URLException

Constructor



55
56
57
58
# File 'lib/PackerFiles/Core/Exceptions.rb', line 55

def initialize(url, inner_obj)
   @super
   self.message = "URL #{url} could not be opened! HTTP Error: #{inner_obj.to_s}"
end