Exception: GitCurate::SystemCommandError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/git_curate/exceptions.rb

Overview

Error indicating that a system command has exited with a non-success exit status.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, exit_status) ⇒ SystemCommandError

Returns a new instance of SystemCommandError.



11
12
13
14
# File 'lib/git_curate/exceptions.rb', line 11

def initialize(message, exit_status)
  super(message)
  @exit_status = exit_status
end

Instance Attribute Details

#exit_statusObject (readonly)

Returns the value of attribute exit_status.



9
10
11
# File 'lib/git_curate/exceptions.rb', line 9

def exit_status
  @exit_status
end