# ProcessError
<span class="source-link">[[Source]](src/process/process_error.md#L-0-1)</span>
```pony
class val ProcessError
```

## Constructors

### create
<span class="source-link">[[Source]](src/process/process_error.md#L-0-5)</span>


```pony
new val create(
  error_type': (ExecveError val | PipeError val | ForkError val | 
    WaitpidError val | WriteError val | KillError val | 
    CapError val | ChdirError val | UnknownError val),
  message': (String val | None val) = reference)
: ProcessError val^
```
#### Parameters

*   error_type': ([ExecveError](process-ExecveError.md) val | [PipeError](process-PipeError.md) val | [ForkError](process-ForkError.md) val | 
    [WaitpidError](process-WaitpidError.md) val | [WriteError](process-WriteError.md) val | [KillError](process-KillError.md) val | 
    [CapError](process-CapError.md) val | [ChdirError](process-ChdirError.md) val | [UnknownError](process-UnknownError.md) val)
*   message': ([String](builtin-String.md) val | [None](builtin-None.md) val) = reference

#### Returns

* [ProcessError](process-ProcessError.md) val^

---

## Public fields

### let error_type: ([ExecveError](process-ExecveError.md) val | [PipeError](process-PipeError.md) val | [ForkError](process-ForkError.md) val | [WaitpidError](process-WaitpidError.md) val | [WriteError](process-WriteError.md) val | [KillError](process-KillError.md) val | [CapError](process-CapError.md) val | [ChdirError](process-ChdirError.md) val | [UnknownError](process-UnknownError.md) val)
<span class="source-link">[[Source]](src/process/process_error.md#L-0-2)</span>



---

### let message: ([String](builtin-String.md) val | [None](builtin-None.md) val)
<span class="source-link">[[Source]](src/process/process_error.md#L-0-3)</span>



---

## Public Functions

### string
<span class="source-link">[[Source]](src/process/process_error.md#L-0-11)</span>


```pony
fun box string()
: String iso^
```

#### Returns

* [String](builtin-String.md) iso^

---

