# ErrorPolicy

> The policy Unity uses when dedicated server command-line arguments are invalid.

## Definition

* **Type:** Property
* **Namespace:** [UnityEngine.DedicatedServer](/engine/6000.6/script-reference/unityengine/dedicatedserver.md)
* **Assembly:** UnityEngine.CoreModule

```csharp
public static Arguments.ArgumentErrorPolicy ErrorPolicy { get; set; }
```

### Remarks

This is how Unity responds to unknown command-line arguments and invalid values for known arguments. The default value is configured in Dedicated Server Player settings. At startup, Unity might also set this property from the `-arg-error-policy` or `-aep` command-line flag. Valid values are `ignore`, `warn`, and `fatal`.

Additional Resources: [Arguments.ArgumentErrorPolicy](/engine/6000.6/script-reference/unityengine/dedicatedserver/arguments/argumenterrorpolicy.md).
