Exception: HookSniff::NetworkError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/hooksniff/errors.rb

Overview

Network error — connection failed

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of NetworkError.



153
154
155
156
# File 'lib/hooksniff/errors.rb', line 153

def initialize(message = "Network error")
  @code = 0
  super(message)
end

Instance Attribute Details

#codeObject (readonly)

Returns the value of attribute code.



152
153
154
# File 'lib/hooksniff/errors.rb', line 152

def code
  @code
end