---
title: AXError.illegalArgument
framework: applicationservices
role: symbol
role_heading: Enumeration Case
path: applicationservices/axerror/illegalargument
---

# AXError.illegalArgument

The value received in this event is an invalid value for this attribute. This also applies for invalid parameters in parameterized attributes.

## Declaration

```swift
case illegalArgument = -25201
```

## See Also

### Result Codes

- [AXError.invalidUIElement](applicationservices/axerror/invaliduielement.md)
- [AXError.invalidUIElementObserver](applicationservices/axerror/invaliduielementobserver.md)
- [AXError.cannotComplete](applicationservices/axerror/cannotcomplete.md)
- [AXError.attributeUnsupported](applicationservices/axerror/attributeunsupported.md)
- [AXError.actionUnsupported](applicationservices/axerror/actionunsupported.md)
- [AXError.apiDisabled](applicationservices/axerror/apidisabled.md)
- [AXError.parameterizedAttributeUnsupported](applicationservices/axerror/parameterizedattributeunsupported.md)
