Class: Puppet::SSL::StateMachine::Error

Inherits:
SSLState show all
Defined in:
lib/puppet/ssl/state_machine.rb

Overview

We cannot make progress due to an error.

Instance Attribute Summary collapse

Attributes inherited from SSLState

#ssl_context

Instance Method Summary collapse

Methods inherited from SSLState

#to_error

Constructor Details

#initialize(machine, message, error) ⇒ Error

Returns a new instance of Error.


319
320
321
322
323
# File 'lib/puppet/ssl/state_machine.rb', line 319

def initialize(machine, message, error)
  super(machine, nil)
  @message = message
  @error = error
end

Instance Attribute Details

#errorObject (readonly)

Returns the value of attribute error


317
318
319
# File 'lib/puppet/ssl/state_machine.rb', line 317

def error
  @error
end

#messageObject (readonly)

Returns the value of attribute message


317
318
319
# File 'lib/puppet/ssl/state_machine.rb', line 317

def message
  @message
end

Instance Method Details

#next_stateObject


325
326
327
328
# File 'lib/puppet/ssl/state_machine.rb', line 325

def next_state
  Puppet.log_exception(@error, @message)
  Wait.new(@machine)
end