---
title: execFormatError
framework: system
role: symbol
role_heading: Type Property
path: system/errno/execformaterror
---

# execFormatError

Executable format error.

## Declaration

```swift
static var execFormatError: Errno { get }
```

## Mentioned in

Adopting Swift Error Constants

## Discussion

Discussion A request was made to execute a file that, although it has the appropriate permissions, isn’t in the format required for an executable file. The corresponding C error is ENOEXEC.

## See Also

### Executable File Errors

- [badCPUType](system/errno/badcputype.md)
- [badExecutable](system/errno/badexecutable.md)
- [malformedMachO](system/errno/malformedmacho.md)
- [sharedLibraryVersionMismatch](system/errno/sharedlibraryversionmismatch.md)
