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

EnvironmentSetError

Preserves the exact rejected environment entry and its failure identity. Caller owns this error and may explicitly move Entry to another owner. No retry, text conversion or host mutation occurs. Synchronize writable access.

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.

EnvironmentSetError

pub final class EnvironmentSetError

Preserves the exact rejected environment entry and its failure identity. Caller owns this error and may explicitly move Entry to another owner. No retry, text conversion or host mutation occurs. Synchronize writable access.

EnvironmentSetError.Reason

pub Reason: EnvironmentSetErrorReason;

Exact validation/storage failure identity.

EnvironmentSetError.Entry

pub Entry: EnvironmentEntry;

Original rejected entry, including invalid name units.

EnvironmentSetError.init

pub init(Reason: EnvironmentSetErrorReason, mut Entry: EnvironmentEntry)

Retains failure identity and transfers the rejected entry. Reason: Exact failed edit identity. Entry: Rejected owned entry transferred into the error.

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