Exception: Sendly::NetworkError

Inherits:
Error
  • Object
show all
Defined in:
lib/sendly/errors.rb

Overview

Raised when a network error occurs

Direct Known Subclasses

TimeoutError

Instance Attribute Summary

Attributes inherited from Error

#code, #details, #status_code

Instance Method Summary collapse

Constructor Details

#initialize(message = "Network error occurred") ⇒ NetworkError

Returns a new instance of NetworkError.



68
69
70
# File 'lib/sendly/errors.rb', line 68

def initialize(message = "Network error occurred")
  super(message, code: "NETWORK_ERROR")
end