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.



290
291
292
293
294
# File 'lib/puppet/ssl/state_machine.rb', line 290

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

Instance Attribute Details

#error ⇒ Object (readonly)

Returns the value of attribute error.



288
289
290
# File 'lib/puppet/ssl/state_machine.rb', line 288

def error
  @error
end

#message ⇒ Object (readonly)

Returns the value of attribute message.



288
289
290
# File 'lib/puppet/ssl/state_machine.rb', line 288

def message
  @message
end

Instance Method Details

#next_state ⇒ Object



296
297
298
299
# File 'lib/puppet/ssl/state_machine.rb', line 296

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