You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
BREAKING CHANGE: RubyGit::CommandLine.run no longer accepts the option
`raise_git_errors: <Boolean>`. Users should use `raise_errors: <Boolean>` instead.
BREAKING CHANGE: this gem now raises `RubyGit::ArgumentError` where before it raised
`::ArgumentError`
Copy file name to clipboardExpand all lines: lib/ruby_git/errors.rb
+15Lines changed: 15 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -16,6 +16,7 @@ module RubyGit
16
16
# ```text
17
17
# StandardError
18
18
# └─> RubyGit::Error
19
+
# ├─> RubyGit::ArgumentError
19
20
# ├─> RubyGit::CommandLineError
20
21
# │ ├─> RubyGit::FailedError
21
22
# │ └─> RubyGit::SignaledError
@@ -28,6 +29,7 @@ module RubyGit
28
29
# | Error Class | Description |
29
30
# | --- | --- |
30
31
# | `Error` | This catch-all error serves as the base class for other custom errors raised by the git gem. |
32
+
# | `ArgumentError` | Raised when an invalid argument is passed to a method. |
31
33
# | `CommandLineError` | A subclass of this error is raised when there is a problem executing the git command line. |
32
34
# | `FailedError` | This error is raised when the git command line exits with a non-zero status code that is not expected by the git gem. |
33
35
# | `SignaledError` | This error is raised when the git command line is terminated as a result of receiving a signal. This could happen if the process is forcibly terminated or if there is a serious system error. |
@@ -66,6 +68,19 @@ class Error < StandardError; end
66
68
67
69
# rubocop:enable Layout/LineLength
68
70
71
+
# Raised when an invalid argument is passed to a method
72
+
#
73
+
# @example Raising RubyGit::ArgumentError due to invalid option value
0 commit comments