Exception: Braid::Operations::ShellExecutionError
- Inherits:
-
BraidError
- Object
- StandardError
- BraidError
- Braid::Operations::ShellExecutionError
- Defined in:
- lib/braid/operations.rb
Instance Attribute Summary collapse
-
#err ⇒ Object
readonly
Returns the value of attribute err.
-
#out ⇒ Object
readonly
Returns the value of attribute out.
Instance Method Summary collapse
-
#initialize(err = nil, out = nil) ⇒ ShellExecutionError
constructor
A new instance of ShellExecutionError.
- #message ⇒ Object
Constructor Details
#initialize(err = nil, out = nil) ⇒ ShellExecutionError
Returns a new instance of ShellExecutionError.
12 13 14 15 |
# File 'lib/braid/operations.rb', line 12 def initialize(err = nil, out = nil) @err = err @out = out end |
Instance Attribute Details
#err ⇒ Object (readonly)
Returns the value of attribute err.
10 11 12 |
# File 'lib/braid/operations.rb', line 10 def err @err end |
#out ⇒ Object (readonly)
Returns the value of attribute out.
10 11 12 |
# File 'lib/braid/operations.rb', line 10 def out @out end |
Instance Method Details
#message ⇒ Object
17 18 19 |
# File 'lib/braid/operations.rb', line 17 def @err.to_s.split("\n").first end |