Exception: RIM::GitException

Inherits:
Exception
  • Object
show all
Defined in:
lib/rim/git.rb

Overview

raised when there is an error emitted by git call

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#cmdObject (readonly)

Returns the value of attribute cmd.



8
9
10
# File 'lib/rim/git.rb', line 8

def cmd
  @cmd
end

#exitstatusObject (readonly)

Returns the value of attribute exitstatus.



8
9
10
# File 'lib/rim/git.rb', line 8

def exitstatus
  @exitstatus
end

#outObject (readonly)

Returns the value of attribute out.



8
9
10
# File 'lib/rim/git.rb', line 8

def out
  @out
end