<!--
{
  "availability" : [

  ],
  "documentType" : "symbol",
  "framework" : "Vision",
  "identifier" : "/documentation/Vision/VNErrorCode",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "Vision"
    ],
    "preciseIdentifier" : "c:@E@VNErrorCode"
  },
  "title" : "VNErrorCode"
}
-->

# VNErrorCode

Constants that identify errors from the framework.

```
enum VNErrorCode
```

## Topics

### Error Codes

[`VNErrorCode.turiCoreErrorCode`](/documentation/Vision/VNErrorCode/turiCoreErrorCode)

An error occurred during Create ML training due to an invalid transformation or image.

[`VNErrorCode.OK`](/documentation/Vision/VNErrorCode/OK)

The operation finished without error.

[`VNErrorCode.dataUnavailable`](/documentation/Vision/VNErrorCode/dataUnavailable)

The data isn’t available.

[`VNErrorCode.internalError`](/documentation/Vision/VNErrorCode/internalError)

An internal error occurred within the framework.

[`VNErrorCode.invalidArgument`](/documentation/Vision/VNErrorCode/invalidArgument)

An app passed an invalid parameter to a request.

[`VNErrorCode.invalidFormat`](/documentation/Vision/VNErrorCode/invalidFormat)

The format of the image is invalid.

[`VNErrorCode.invalidImage`](/documentation/Vision/VNErrorCode/invalidImage)

The image is invalid.

[`VNErrorCode.invalidModel`](/documentation/Vision/VNErrorCode/invalidModel)

The Core ML model is incompatible with the request.

[`VNErrorCode.invalidOperation`](/documentation/Vision/VNErrorCode/invalidOperation)

An app requested an unsupported operation.

[`VNErrorCode.invalidOption`](/documentation/Vision/VNErrorCode/invalidOption)

An app specified an invalid option on a request.

[`VNErrorCode.ioError`](/documentation/Vision/VNErrorCode/ioError)

An I/O error for an image, image sequence, or Core ML model.

[`VNErrorCode.missingOption`](/documentation/Vision/VNErrorCode/missingOption)

A request is missing a required option.

[`VNErrorCode.notImplemented`](/documentation/Vision/VNErrorCode/notImplemented)

The method isn’t implemented in the underlying model.

[`VNErrorCode.operationFailed`](/documentation/Vision/VNErrorCode/operationFailed)

The requested operation failed.

[`VNErrorCode.outOfBoundsError`](/documentation/Vision/VNErrorCode/outOfBoundsError)

An app attempted to access data that’s out-of-bounds.

[`VNErrorCode.outOfMemory`](/documentation/Vision/VNErrorCode/outOfMemory)

The system doesn’t have enough memory to complete the request.

[`VNErrorCode.requestCancelled`](/documentation/Vision/VNErrorCode/requestCancelled)

An app canceled the request.

[`VNErrorCode.resourceCorrupted`](/documentation/Vision/VNErrorCode/resourceCorrupted)

[`VNErrorCode.resourceUnavailable`](/documentation/Vision/VNErrorCode/resourceUnavailable)

[`VNErrorCode.timeStampNotFound`](/documentation/Vision/VNErrorCode/timeStampNotFound)

The system can’t find a timestamp.

[`VNErrorCode.unknownError`](/documentation/Vision/VNErrorCode/unknownError)

An unidentified error occurred.

[`VNErrorCode.unsupportedRevision`](/documentation/Vision/VNErrorCode/unsupportedRevision)

An app specified an unsupported request revision.

[`VNErrorCode.unsupportedRequest`](/documentation/Vision/VNErrorCode/unsupportedRequest)

An app attempted an unsupported request.

[`VNErrorCode.unsupportedComputeDevice`](/documentation/Vision/VNErrorCode/unsupportedComputeDevice)

An app requested an unsupported compute device.

[`VNErrorCode.unsupportedComputeStage`](/documentation/Vision/VNErrorCode/unsupportedComputeStage)

An app requested an unsupported compute stage.

[`VNErrorCode.timeout`](/documentation/Vision/VNErrorCode/timeout)

The requested operation timed out.

### Creating an Error Code

[`init(rawValue:)`](/documentation/Vision/VNErrorCode/init(rawValue:))



---

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)