Exception: MisarBlog::NetworkError

Inherits:
ApiError
  • Object
show all
Defined in:
lib/misarblog/errors.rb

Overview

Raised for connectivity failures where no HTTP response was received.

Instance Attribute Summary collapse

Attributes inherited from ApiError

#body, #error_type, #status

Instance Method Summary collapse

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(message, cause = nil)
  super(0, message, "network_error")
  @cause_error = cause
end

Instance Attribute Details

#cause_errorObject (readonly)

Returns the value of attribute cause_error.



47
48
49
# File 'lib/misarblog/errors.rb', line 47

def cause_error
  @cause_error
end