---
title: SNError.Code
framework: Sound Analysis
role: symbol
role_heading: Enumeration
platforms: [iOS 13.0+, iPadOS 13.0+, Mac Catalyst 13.1+, macOS 10.15+, tvOS 13.0+, visionOS 1.0+, watchOS 6.0+]
path: soundanalysis/snerror/code
---

# SNError.Code

The enumerated error codes that the Sound Analysis framework produces.

## Declaration

```swift
enum Code
```

## Topics

### Errors

- [SNError.Code.invalidModel](soundanalysis/snerror/code/invalidmodel.md)
- [SNError.Code.invalidFormat](soundanalysis/snerror/code/invalidformat.md)
- [SNError.Code.invalidFile](soundanalysis/snerror/code/invalidfile.md)
- [SNError.Code.operationFailed](soundanalysis/snerror/code/operationfailed.md)
- [SNError.Code.unknownError](soundanalysis/snerror/code/unknownerror.md)

### Initializers

- [init(rawValue:)](soundanalysis/snerror/code/init(rawvalue:).md)

## Relationships

### Conforms To

- [BitwiseCopyable](swift/bitwisecopyable.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [RawRepresentable](swift/rawrepresentable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Errors

- [SNError](soundanalysis/snerror.md)
- [SNErrorDomain](soundanalysis/snerrordomain.md)
