Class: Qu::Failure::Exceptional

Inherits:
Object
  • Object
show all
Extended by:
Logger
Defined in:
lib/qu/failure/exceptional.rb

Defined Under Namespace

Classes: ExceptionData

Class Method Summary collapse

Class Method Details

.create(job, exception) ⇒ Object



8
9
10
11
12
13
14
15
# File 'lib/qu/failure/exceptional.rb', line 8

def self.create(job, exception)
  if ::Exceptional::Config.should_send_to_api?
    logger.debug "Reporting error to Exceptional"
    ::Exceptional::Remote.error(ExceptionData.new(job, exception))
  else
    logger.debug "Not reporting error to exceptional"
  end
end