# 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': ProcessErrorType,
  message': (String val | None val) = reference)
: ProcessError val^
```
#### Parameters

*   error_type': [ProcessErrorType](process-ProcessErrorType.md)
*   message': ([String](builtin-String.md) val | [None](builtin-None.md) val) = reference

#### Returns

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

---

## Public fields

### let error_type: [ProcessErrorType](process-ProcessErrorType.md)
<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^

---

