Exception: Cloudtasker::InvalidWorkerError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/cloudtasker/invalid_worker_error.rb

Overview

Error raised when a worker class cannot be instantiated.

Instance Method Summary collapse

Constructor Details

#initialize(worker_name = nil) ⇒ InvalidWorkerError

Returns a new instance of InvalidWorkerError.



6
7
8
# File 'lib/cloudtasker/invalid_worker_error.rb', line 6

def initialize(worker_name = nil)
  super(worker_name ? "Invalid worker: #{worker_name}" : 'Invalid worker')
end