<!--
{
  "availability" : [
    "iOS: 18.0.0 -",
    "iPadOS: 18.0.0 -",
    "macCatalyst: -",
    "macOS: 15.0.0 -",
    "tvOS: 18.0.0 -",
    "visionOS: -",
    "watchOS: 11.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Accelerate",
  "identifier" : "/documentation/Accelerate/BNNSGraph/Error",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "Accelerate"
    ],
    "preciseIdentifier" : "s:10Accelerate9BNNSGraphO5ErrorO"
  },
  "title" : "BNNSGraph.Error"
}
-->

# BNNSGraph.Error

Error codes that a graph context throws.

```
enum Error
```

## Topics

### Error codes

[`case unableToCreateContext`](/documentation/Accelerate/BNNSGraph/Error/unableToCreateContext)

The call to the underlying context-creation function failed.

[`case unableToCreateGraph`](/documentation/Accelerate/BNNSGraph/Error/unableToCreateGraph)

The call to the underlying graph-creation function failed.

[`case unableToExecute`](/documentation/Accelerate/BNNSGraph/Error/unableToExecute)

The call to the underlying graph-execute function failed.

[`case unableToSetDynamicShapes`](/documentation/Accelerate/BNNSGraph/Error/unableToSetDynamicShapes)

The call to the underlying set dynamic shapes function failed.

### Enumeration Cases

[`case unableToMakeGraph(String)`](/documentation/Accelerate/BNNSGraph/Error/unableToMakeGraph(_:))

Indicates that the call to the underlying `BNNSGraphContextSetDynamicShapes` function failed.

## Relationships

### Conforms To

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

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

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

---

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)