Exception: ChupaText::DownloadError

Inherits:
Error
  • Object
show all
Defined in:
lib/chupa-text/error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(uri, reason) ⇒ DownloadError

Returns a new instance of DownloadError.



24
25
26
27
28
# File 'lib/chupa-text/error.rb', line 24

def initialize(uri, reason)
  @uri = uri
  @reason = reason
  super("Download error: <#{uri}>: #{reason}")
end

Instance Attribute Details

#reasonObject (readonly)

Returns the value of attribute reason.



23
24
25
# File 'lib/chupa-text/error.rb', line 23

def reason
  @reason
end

#uriObject (readonly)

Returns the value of attribute uri.



22
23
24
# File 'lib/chupa-text/error.rb', line 22

def uri
  @uri
end