Exception: Shexec::ExecError

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(exit_status, last_line) ⇒ ExecError

Returns a new instance of ExecError.



9
10
11
12
13
# File 'lib/shexec.rb', line 9

def initialize(exit_status, last_line)
  super("Error on cmd. #{exit_status}")
  self.exit_status = exit_status
  self.last_line = last_line
end

Instance Attribute Details

#exit_statusObject

Returns the value of attribute exit_status.



7
8
9
# File 'lib/shexec.rb', line 7

def exit_status
  @exit_status
end

#last_lineObject

Returns the value of attribute last_line.



7
8
9
# File 'lib/shexec.rb', line 7

def last_line
  @last_line
end