Class: Ronin::Recon::Message::JobFailed Private

Inherits:
Object
  • Object
show all
Defined in:
lib/ronin/recon/message/job_failed.rb

Overview

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Indicates that a job encountered an exception.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(worker, value, exception) ⇒ JobFailed

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Initializes the message.

Parameters:

  • worker (Worker)

    The worker object.

  • value (Value)

    The input value object.

  • exception (StandardError)

    The exception object.



58
59
60
61
62
63
64
# File 'lib/ronin/recon/message/job_failed.rb', line 58

def initialize(worker,value,exception)
  @worker    = worker
  @value     = value
  @exception = exception

  freeze
end

Instance Attribute Details

#exceptionStandardError (readonly)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

The exception.

Returns:

  • (StandardError)


44
45
46
# File 'lib/ronin/recon/message/job_failed.rb', line 44

def exception
  @exception
end

#valueValue (readonly)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

The input value object.

Returns:



39
40
41
# File 'lib/ronin/recon/message/job_failed.rb', line 39

def value
  @value
end

#workerWorker (readonly)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

The worker object.

Returns:



34
35
36
# File 'lib/ronin/recon/message/job_failed.rb', line 34

def worker
  @worker
end