Class: Puppet::SSL::StateMachine::Error Private
- 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
- #error ⇒ Object readonly private
- #message ⇒ Object readonly private
Attributes inherited from SSLState
Instance Method Summary collapse
-
#initialize(machine, message, error) ⇒ Error
constructor
private
A new instance of Error.
- #next_state ⇒ Object private
Methods inherited from SSLState
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.
477 478 479 480 481 |
# File 'lib/puppet/ssl/state_machine.rb', line 477 def initialize(machine, , error) super(machine, nil) @message = @error = error end |
Instance Attribute Details
#error ⇒ Object (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.
475 476 477 |
# File 'lib/puppet/ssl/state_machine.rb', line 475 def error @error end |
#message ⇒ Object (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.
475 476 477 |
# File 'lib/puppet/ssl/state_machine.rb', line 475 def @message end |
Instance Method Details
#next_state ⇒ Object
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.
483 484 485 486 |
# File 'lib/puppet/ssl/state_machine.rb', line 483 def next_state Puppet.log_exception(@error, @message) Wait.new(@machine) end |