Exception: Toys::Utils::GitCache::Error

Inherits:
StandardError
  • Object
show all
Defined in:
lib/toys/utils/git_cache.rb

Overview

Toys::Utils::GitCache encountered a failure

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, result = nil) ⇒ Error

Create a Toys::Utils::GitCache::Error.

Parameters:

  • message (String) —

    The error message

  • result (::Toys::Utils::Exec::Result, nil) (defaults to: nil) —

    The result of a git command execution. Omit or pass nil if this error was not due to a git command error.



608
609
610
611
# File 'lib/toys/utils/git_cache.rb', line 608

def initialize(message, result = nil)
  super(message)
  @exec_result = result
end

Instance Attribute Details

#exec_result ⇒ ::Toys::Utils::Exec::Result (readonly)

Returns The result of a git command execution, or nil if this error was not due to a git command error.

Returns:



618
619
620
# File 'lib/toys/utils/git_cache.rb', line 618

def exec_result
  @exec_result
end