1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
|
module ChildProcess
class Error < StandardError
end
class TimeoutError < Error
end
class SubclassResponsibility < Error
end
class InvalidEnvironmentVariable < Error
end
class LaunchError < Error
end
class MissingFFIError < Error
def initialize
message = "FFI is a required pre-requisite for Windows or posix_spawn support in the ChildProcess gem. " +
"Ensure the `ffi` gem is installed. " +
"If you believe this is an error, please file a bug at http://github.com/enkessler/childprocess/issues"
super(message)
end
end
class MissingPlatformError < Error
def initialize
message = "posix_spawn is not yet supported on #{ChildProcess.platform_name} (#{RUBY_PLATFORM}), falling back to default implementation. " +
"If you believe this is an error, please file a bug at http://github.com/enkessler/childprocess/issues"
super(message)
end
end
end
|