Class: TxghQueue::ErrorHandlers::StandardErrors

Inherits:
Object
  • Object
show all
Defined in:
lib/txgh-queue/error_handlers/standard_errors.rb

Class Method Summary collapse

Class Method Details

.can_handle?(error_or_response) ⇒ Boolean

Returns:

  • (Boolean)


5
6
7
# File 'lib/txgh-queue/error_handlers/standard_errors.rb', line 5

def can_handle?(error_or_response)
  error_or_response.is_a?(StandardError)
end

.status_for(response) ⇒ Object



9
10
11
# File 'lib/txgh-queue/error_handlers/standard_errors.rb', line 9

def status_for(response)
  Status.fail
end