Exception: MisarMail::NetworkError

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

Instance Attribute Summary

Attributes inherited from ApiError

#error_type, #status

Instance Method Summary collapse

Methods inherited from ApiError

from_response

Constructor Details

#initialize(message, cause = nil) ⇒ NetworkError

Returns a new instance of NetworkError.



54
55
56
57
# File 'lib/misar_mail/errors.rb', line 54

def initialize(message, cause = nil)
  super(0, message, "network_error")
  @cause = cause
end