Exception: Certynix::NetworkError

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

Overview

Timeout, DNS, conexão recusada

Instance Attribute Summary

Attributes inherited from Error

#code, #request_id, #status_code

Instance Method Summary collapse

Constructor Details

#initialize(message, cause: nil) ⇒ NetworkError

Returns a new instance of NetworkError.



77
78
79
80
# File 'lib/certynix/errors.rb', line 77

def initialize(message, cause: nil)
  super(message: message, code: 'NETWORK_ERROR', status_code: 0)
  @cause = cause
end