Exception: Git::GitError
- Inherits:
-
StandardError
- Object
- StandardError
- Git::GitError
- Defined in:
- lib/git/git_error.rb
Instance Attribute Summary collapse
-
#command ⇒ Object
readonly
Returns the value of attribute command.
-
#error_message ⇒ Object
readonly
Returns the value of attribute error_message.
-
#exit_code ⇒ Object
readonly
Returns the value of attribute exit_code.
Instance Method Summary collapse
-
#initialize(command, exit_code, error_message) ⇒ GitError
constructor
A new instance of GitError.
Constructor Details
#initialize(command, exit_code, error_message) ⇒ GitError
Returns a new instance of GitError.
7 8 9 10 11 12 |
# File 'lib/git/git_error.rb', line 7 def initialize(command, exit_code, ) @command = command @exit_code = exit_code = super("Git command #{@command} failed with exit code #{@exit_code}. Message:\n#{@error_message}") end |
Instance Attribute Details
#command ⇒ Object (readonly)
Returns the value of attribute command.
5 6 7 |
# File 'lib/git/git_error.rb', line 5 def command @command end |
#error_message ⇒ Object (readonly)
Returns the value of attribute error_message.
5 6 7 |
# File 'lib/git/git_error.rb', line 5 def end |
#exit_code ⇒ Object (readonly)
Returns the value of attribute exit_code.
5 6 7 |
# File 'lib/git/git_error.rb', line 5 def exit_code @exit_code end |