Exception: IERS::NetworkError
- Inherits:
-
DownloadError
- Object
- StandardError
- Error
- DownloadError
- IERS::NetworkError
- Defined in:
- lib/iers/errors.rb
Instance Attribute Summary collapse
- #status_code ⇒ Integer? readonly
- #url ⇒ String? readonly
Instance Method Summary collapse
-
#initialize(message = nil, url: nil, status_code: nil) ⇒ NetworkError
constructor
A new instance of NetworkError.
Constructor Details
#initialize(message = nil, url: nil, status_code: nil) ⇒ NetworkError
Returns a new instance of NetworkError.
39 40 41 42 43 |
# File 'lib/iers/errors.rb', line 39 def initialize( = nil, url: nil, status_code: nil) @url = url @status_code = status_code super() end |
Instance Attribute Details
#status_code ⇒ Integer? (readonly)
37 38 39 |
# File 'lib/iers/errors.rb', line 37 def status_code @status_code end |
#url ⇒ String? (readonly)
35 36 37 |
# File 'lib/iers/errors.rb', line 35 def url @url end |