# Exception

## class EnvException

```cangjie
public class EnvException <: Exception {
    public init(message: String)
}
```

Function: The exception class for the `env` package.

Parent Type:

- [Exception](../../../std_en/core/core_package_api/core_package_exceptions.md#class-exception)

### init(String)

```cangjie
public init(message: String)
```

Function: Creates an instance of [EnvException](../../process/process_package_api/process_package_exceptions.md#class-processexception).

Parameters:

- message: [String](../../core/core_package_api/core_package_structs.md#struct-string) - The exception message.