Exception: Summarize::CommandError
- Defined in:
- lib/summarize/errors.rb
Instance Attribute Summary collapse
-
#exit_code ⇒ Object
readonly
Returns the value of attribute exit_code.
-
#stderr ⇒ Object
readonly
Returns the value of attribute stderr.
Instance Method Summary collapse
-
#initialize(exit_code, stderr) ⇒ CommandError
constructor
A new instance of CommandError.
Constructor Details
#initialize(exit_code, stderr) ⇒ CommandError
Returns a new instance of CommandError.
25 26 27 28 29 |
# File 'lib/summarize/errors.rb', line 25 def initialize(exit_code, stderr) @exit_code = exit_code @stderr = stderr super("summarize exited with code #{exit_code}: #{stderr}") end |
Instance Attribute Details
#exit_code ⇒ Object (readonly)
Returns the value of attribute exit_code.
23 24 25 |
# File 'lib/summarize/errors.rb', line 23 def exit_code @exit_code end |
#stderr ⇒ Object (readonly)
Returns the value of attribute stderr.
23 24 25 |
# File 'lib/summarize/errors.rb', line 23 def stderr @stderr end |