Under heavy development. This site describes the intended 1.0 language. Current features and performance vary. Development status
Sn50SnThe SnAPI programming language
Development · Evolving reference

ProcessFailure

Classifies launch/admission/control failures separately from child exit. Nonzero exit is a successful ProcessExit. Native diagnostic numbers remain in ProcessError.NativeCode. Cancellation/timeout completion follows direct-child cleanup; no wall-clock kill bound is promised.

Sn is under heavy development. This reference includes the intended 1.0 design; features may be incomplete in the current compiler. Read the status →

Module std.process

import std.process;

Public declaration contracts and authored examples. A page can document several related symbols. Implementation bodies are excluded.

ProcessFailure

pub enum ProcessFailure

Classifies launch/admission/control failures separately from child exit. Nonzero exit is a successful ProcessExit. Native diagnostic numbers remain in ProcessError.NativeCode. Cancellation/timeout completion follows direct-child cleanup; no wall-clock kill bound is promised.

ProcessFailure.InvalidInput

InvalidInput;

Invalid absolute paths, argument shape, environment or timeout.

ProcessFailure.EmbeddedNul

EmbeddedNul;

Native input contains an embedded zero.

ProcessFailure.CapacityExceeded

CapacityExceeded;

Input or native argv allowance exceeded.

ProcessFailure.NotFound

NotFound;

Executable or working directory absent.

ProcessFailure.PermissionDenied

PermissionDenied;

Native execution permission denied.

ProcessFailure.OutOfMemory

OutOfMemory;

Native/source allocation failed.

ProcessFailure.ResourceUnavailable

ResourceUnavailable;

Native or blocking-dispatch capacity unavailable.

ProcessFailure.Unsupported

Unsupported;

Provider/representation or host reaping policy unsupported.

ProcessFailure.Cancelled

Cancelled;

Cooperative cancellation won before terminal observation.

ProcessFailure.TimedOut

TimedOut;

Monotonic allowance expired before terminal observation.

ProcessFailure.NativeFailure

NativeFailure;

Other native failure.

Documentation snapshot: October 24, 2026 About versions ↗
Searching Development · language & standard library