Exception: SourceMonitor::Fetching::BlockedError

Inherits:
FetchError
  • Object
show all
Defined in:
lib/source_monitor/fetching/fetch_error.rb

Constant Summary collapse

CODE =
"blocked"

Instance Attribute Summary collapse

Attributes inherited from FetchError

#original_error, #response

Instance Method Summary collapse

Methods inherited from FetchError

#code, #http_status

Constructor Details

#initialize(message = nil, blocked_by: "unknown", **kwargs) ⇒ BlockedError

Returns a new instance of BlockedError.



93
94
95
96
# File 'lib/source_monitor/fetching/fetch_error.rb', line 93

def initialize(message = nil, blocked_by: "unknown", **kwargs)
  @blocked_by = blocked_by
  super(message, **kwargs)
end

Instance Attribute Details

#blocked_byObject (readonly)

Returns the value of attribute blocked_by.



91
92
93
# File 'lib/source_monitor/fetching/fetch_error.rb', line 91

def blocked_by
  @blocked_by
end