class Pione::Command::SpawnError
SpawnError
is raised when the command failed to run.
Public Class Methods
child_process_is_dead(caller, callee, argv)
click to toggle source
Create a spawn error caused that child process is dead
@param caller [String]
caller name
@param callee [String]
callee name
@param argv [Array<String>]
arguments of process call
@return [SpawnError]
a spawn error
# File lib/pione/command/command-exception.rb, line 17 def self.child_process_is_dead(caller, callee, argv) new(caller, callee, argv, "child process is dead") end
new(caller, callee, argv, cause)
click to toggle source
# File lib/pione/command/command-exception.rb, line 21 def initialize(caller, callee, argv, cause) @caller = caller @callee = callee @argv = argv @cause = cause end
Public Instance Methods
message()
click to toggle source
# File lib/pione/command/command-exception.rb, line 28 def message args = {caller: @caller, callee: @callee, argv: @argv, cause: @cause} '"%{caller}" has failed to spawn "%{callee}" %{argv}: %{cause}' % args end