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

Inherits:
SSLState show all
Defined in:
lib/puppet/ssl/state_machine.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.

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

#log_error, #to_error

Constructor Details

#initialize(machine, message, error) ⇒ Error

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.

Returns a new instance of Error.



345
346
347
348
349
# File 'lib/puppet/ssl/state_machine.rb', line 345

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

Instance Attribute Details

#errorObject (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.



343
344
345
# File 'lib/puppet/ssl/state_machine.rb', line 343

def error
  @error
end

#messageObject (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.



343
344
345
# File 'lib/puppet/ssl/state_machine.rb', line 343

def message
  @message
end

Instance Method Details

#next_stateObject

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.



351
352
353
354
# File 'lib/puppet/ssl/state_machine.rb', line 351

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