Enumeration

VNErrorCode

Error codes in NSError objects produced by Vision framework methods.

Topics

Determining Error Type

case OK

Error code signifying no error.

case internalError

Error code signifying an error internal to the Vision system.

case invalidArgument

Error code signifying an invalid parameter passed to a Vision request.

case invalidFormat

Error code signifying an invalid image format.

case invalidImage

Error code signifying a problematic image.

case invalidModel

Error code signifying an invalid model.

case invalidOperation

Error code signifying an unsupported operation for a Vision request.

case invalidOption

Error code signifying an invalid option in a Vision request.

case ioError

Error code signifying an input or output error for an image, image sequence, or Core ML model.

case missingOption

Error code signifying that a Vision request is missing a required option.

case notImplemented

Error code signifying a method not implemented in the underlying model.

case operationFailed

Error code signifying that a request operation failed.

case outOfBoundsError

Error code signifying an out-of-bounds access.

case outOfMemory

Error code signifying insufficient memory to complete a Vision request.

case requestCancelled

Error code signifying a canceled Vision request.

case unknownError

Error code signifying an unidentifiable error.

See Also

Errors

let VNErrorDomain: String

The domain for NSError objects produced by Vision framework methods.