<!--
{
  "availability" : [
    "iOS: 18.2.0 -",
    "iPadOS: 18.2.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Messages",
  "identifier" : "/documentation/Messages/MSCriticalMessagingError",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "Messages"
    ],
    "preciseIdentifier" : "s:8Messages24MSCriticalMessagingErrorO"
  },
  "title" : "MSCriticalMessagingError"
}
-->

# MSCriticalMessagingError

Values that describe errors the Critical Messaging API returns.

```
enum MSCriticalMessagingError
```

## Topics

### Creating error objects

### Error codes

[`case unknown`](/documentation/Messages/MSCriticalMessagingError/unknown)

The error code the framework returns after an unknown error occurs.

[`case invalidAuthenticationRequest`](/documentation/Messages/MSCriticalMessagingError/invalidAuthenticationRequest)

The authentication request isn’t valid.

[`case notSupported`](/documentation/Messages/MSCriticalMessagingError/notSupported)

The framework doesn’t support the current device.

[`case notAuthorized`](/documentation/Messages/MSCriticalMessagingError/notAuthorized)

The operation isn’t authorized.

[`case sendFailed`](/documentation/Messages/MSCriticalMessagingError/sendFailed)

The message failed to send.

## Relationships

### Conforms To

[`RawRepresentable`](/documentation/Swift/RawRepresentable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`CustomNSError`](/documentation/Foundation/CustomNSError)

[`Error`](/documentation/Swift/Error)

[`Equatable`](/documentation/Swift/Equatable)

[`Escapable`](/documentation/Swift/Escapable)

[`Sendable`](/documentation/Swift/Sendable)

[`Hashable`](/documentation/Swift/Hashable)

[`Copyable`](/documentation/Swift/Copyable)

[`LocalizedError`](/documentation/Foundation/LocalizedError)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)