Exception: JobQueueError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/OTB/exception.rb

Class Method Summary collapse

Class Method Details

.circular_dependecy_errorObject



7
8
9
# File 'lib/OTB/exception.rb', line 7

def self.circular_dependecy_error
  exception message: "Circular dependency error - Jobs cannot depen on themselfves circularly creating an infinate loop", internal_code: 4009, code:409
end

.no_input_errorObject



12
13
14
# File 'lib/OTB/exception.rb', line 12

def self.no_input_error
  exception message: "No input passed. jobs: was nil" , internal_code: 2004, code: 204
end

.self_dependency_errorObject



3
4
5
# File 'lib/OTB/exception.rb', line 3

def self.self_dependency_error
  exception message: "Self dependency error - A job cannot depend on itself", internal_code: 4009, code:409
end