Exception: ChupaText::DownloadError
- Defined in:
- lib/chupa-text/error.rb
Instance Attribute Summary collapse
-
#reason ⇒ Object
readonly
Returns the value of attribute reason.
-
#uri ⇒ Object
readonly
Returns the value of attribute uri.
Instance Method Summary collapse
-
#initialize(uri, reason) ⇒ DownloadError
constructor
A new instance of DownloadError.
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
#reason ⇒ Object (readonly)
Returns the value of attribute reason.
23 24 25 |
# File 'lib/chupa-text/error.rb', line 23 def reason @reason end |
#uri ⇒ Object (readonly)
Returns the value of attribute uri.
22 23 24 |
# File 'lib/chupa-text/error.rb', line 22 def uri @uri end |