struct VarError

Declaration

struct VarError { /* full declaration omitted */ };

Description

The error type for operations interacting with environment variables. Possibly returned from [`env::var()`]($sus::env::var).

Declared at: sus/env/var.h:29

Member Variables

public sus::env::VarError::Reason reason

Method Overview

  • public constexpr VarError(sus::env::VarError::Reason r)

Methods

ΒΆconstexpr VarError(sus::env::VarError::Reason r)

Description

This struct acts as a proxy for the Reason enum, so it can be implicitly constructed from the reason value.

Declared at: sus/env/var.h:34

Parameters

sus::env::VarError::Reason r