---
title: SFError.Code
framework: Safari app extensions
role: symbol
role_heading: Enumeration
platforms: [iOS 10.0+, iPadOS 10.0+, Mac Catalyst 13.4+, macOS 10.12+, visionOS 1.0+]
path: safariservices/sferror/code
---

# SFError.Code

Messages that describe a content blocker or Safari app extension error.

## Declaration

```swift
enum Code
```

```swift
enum SFErrorCode
```

## Topics

### Error Codes

- [SFError.Code.loadingInterrupted](safariservices/sferror/code/loadinginterrupted.md)
- [SFError.Code.noAttachmentFound](safariservices/sferror/code/noattachmentfound.md)
- [SFError.Code.noExtensionFound](safariservices/sferror/code/noextensionfound.md)

### Enumeration Cases

- [SFError.Code.internalError](safariservices/sferror/code/internalerror.md)
- [SFError.Code.maximumAttemptsExceeded](safariservices/sferror/code/maximumattemptsexceeded.md)
- [SFError.Code.missingEntitlement](safariservices/sferror/code/missingentitlement.md)

### Initializers

- [init(rawValue:)](safariservices/sferror/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

### Miscellaneous errors

- [SFError](safariservices/sferror.md)
- [SFErrorDomain](safariservices/sferrordomain.md)
