Exception: SequenceServer::CommandFailed

Inherits:
StandardError
  • Object
show all
Defined in:
lib/sequenceserver/exceptions.rb

Overview

Raised if the ‘sys’ method could not successfully execute a shell command.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(exitstatus, stdout: nil, stderr: nil) ⇒ CommandFailed

Returns a new instance of CommandFailed.



153
154
155
156
157
# File 'lib/sequenceserver/exceptions.rb', line 153

def initialize(exitstatus, stdout: nil, stderr: nil)
  @exitstatus = exitstatus
  @stdout = stdout
  @stderr = stderr
end

Instance Attribute Details

#exitstatusObject (readonly)

Returns the value of attribute exitstatus.



159
160
161
# File 'lib/sequenceserver/exceptions.rb', line 159

def exitstatus
  @exitstatus
end

#stderrObject (readonly)

Returns the value of attribute stderr.



159
160
161
# File 'lib/sequenceserver/exceptions.rb', line 159

def stderr
  @stderr
end

#stdoutObject (readonly)

Returns the value of attribute stdout.



159
160
161
# File 'lib/sequenceserver/exceptions.rb', line 159

def stdout
  @stdout
end