class ProcessExecuter::CommandError
@api public
* {TimeoutError}: when the command times out
* {SignaledError}: when the command exits because of an uncaught signal
* {FailedError}: when the command exits with a non-zero status
The Gem will raise a more specific error for each type of failure:
object.
The command executed, status, stdout, and stderr are available from this
Raised when a command fails or exits because of an uncaught signal
def error_message
-
(String)
-
def error_message "#{result.command}, status: #{result}, stderr: #{result.stderr.inspect}" end
def initialize(result)
-
result
(Result
) -- The result of the command including the command,
def initialize(result) @result = result super(error_message) end