Exception: MisarBlog::NetworkError
- Defined in:
- lib/misarblog/errors.rb
Overview
Raised for connectivity failures where no HTTP response was received.
Instance Attribute Summary collapse
-
#cause_error ⇒ Object
readonly
Returns the value of attribute cause_error.
Attributes inherited from ApiError
Instance Method Summary collapse
-
#initialize(message, cause = nil) ⇒ NetworkError
constructor
A new instance of NetworkError.
Constructor Details
#initialize(message, cause = nil) ⇒ NetworkError
Returns a new instance of NetworkError.
49 50 51 52 |
# File 'lib/misarblog/errors.rb', line 49 def initialize(, cause = nil) super(0, , "network_error") @cause_error = cause end |
Instance Attribute Details
#cause_error ⇒ Object (readonly)
Returns the value of attribute cause_error.
47 48 49 |
# File 'lib/misarblog/errors.rb', line 47 def cause_error @cause_error end |