---
title: AMError.Code.userCanceledError
framework: Automator
role: symbol
role_heading: Case
platforms: [Mac Catalyst 14.0+, macOS 10.4+]
path: automator/amerror/code/usercancelederror
---

# AMError.Code.userCanceledError

An error that indicates the user cancelled.

## Declaration

```swift
case userCanceledError
```

## Discussion

Discussion This error is the same as the AppleScript error userCanceledErr. When an Apple Event is canceled by the user, a running action may return this error. Automator ignores the error and stops the workflow gracefully, without displaying the error to the user.
