Exception: Summarize::CommandError

Inherits:
Error
  • Object
show all
Defined in:
lib/summarize/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_codeObject (readonly)

Returns the value of attribute exit_code.



23
24
25
# File 'lib/summarize/errors.rb', line 23

def exit_code
  @exit_code
end

#stderrObject (readonly)

Returns the value of attribute stderr.



23
24
25
# File 'lib/summarize/errors.rb', line 23

def stderr
  @stderr
end