Exception: Shexec::ExecError
- Inherits:
-
StandardError
- Object
- StandardError
- Shexec::ExecError
- Defined in:
- lib/shexec.rb
Instance Attribute Summary collapse
-
#exit_status ⇒ Object
Returns the value of attribute exit_status.
-
#last_line ⇒ Object
Returns the value of attribute last_line.
Instance Method Summary collapse
-
#initialize(exit_status, last_line) ⇒ ExecError
constructor
A new instance of ExecError.
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_status ⇒ Object
Returns the value of attribute exit_status.
7 8 9 |
# File 'lib/shexec.rb', line 7 def exit_status @exit_status end |
#last_line ⇒ Object
Returns the value of attribute last_line.
7 8 9 |
# File 'lib/shexec.rb', line 7 def last_line @last_line end |