Exception: RIM::GitException
- Inherits:
-
Exception
- Object
- Exception
- RIM::GitException
- Defined in:
- lib/rim/git.rb
Overview
raised when there is an error emitted by git call
Instance Attribute Summary collapse
-
#cmd ⇒ Object
readonly
Returns the value of attribute cmd.
-
#exitstatus ⇒ Object
readonly
Returns the value of attribute exitstatus.
-
#out ⇒ Object
readonly
Returns the value of attribute out.
Instance Method Summary collapse
-
#initialize(cmd, exitstatus, out) ⇒ GitException
constructor
A new instance of GitException.
Constructor Details
#initialize(cmd, exitstatus, out) ⇒ GitException
Returns a new instance of GitException.
9 10 11 12 13 14 |
# File 'lib/rim/git.rb', line 9 def initialize(cmd, exitstatus, out) super("git \"#{cmd}\" => #{exitstatus}\n#{out}") @cmd = cmd @exitstatus = exitstatus @out = out end |
Instance Attribute Details
#cmd ⇒ Object (readonly)
Returns the value of attribute cmd.
8 9 10 |
# File 'lib/rim/git.rb', line 8 def cmd @cmd end |
#exitstatus ⇒ Object (readonly)
Returns the value of attribute exitstatus.
8 9 10 |
# File 'lib/rim/git.rb', line 8 def exitstatus @exitstatus end |
#out ⇒ Object (readonly)
Returns the value of attribute out.
8 9 10 |
# File 'lib/rim/git.rb', line 8 def out @out end |