Method: Hermann::Result#internal_set_error

Defined in:
lib/hermann/result.rb

#internal_set_error(exception) ⇒ Object

INTERNAL METHOD ONLY. Do not use

This method will set our internal #reason with the details from the exception

Parameters:

  • exception (Exception)


67
68
69
70
71
72
# File 'lib/hermann/result.rb', line 67

def internal_set_error(exception)
  return if exception.nil?

  @reason = exception
  @state = :rejected
end