Exception: Braid::Operations::ShellExecutionError

Inherits:
BraidError
  • Object
show all
Defined in:
lib/braid/operations.rb

Instance Method Summary collapse

Constructor Details

#initialize(err = nil) ⇒ ShellExecutionError

Returns a new instance of ShellExecutionError.



9
10
11
# File 'lib/braid/operations.rb', line 9

def initialize(err = nil)
  @err = err
end

Instance Method Details

#messageObject



13
14
15
# File 'lib/braid/operations.rb', line 13

def message
  @err.to_s.split("\n").first
end