Enumeration

MLCreateError

The errors Create ML throws while performing various operations, such as training models, making predictions, writing models to a file system, and so on.

Declaration

enum MLCreateError

Topics

Identifying Errors

case io(reason: String)

An error that indicates an I/O failure.

case type(reason: String)

An error that indicates a missing or incorrect type.

case generic(reason: String)

An error that indicates a failure not covered by one of the other errors.

let MLCreateErrorDomain: String

A global constant that defines the domain for Create ML errors.

Describing Errors

var description: String

A human-readable description of the error.

var debugDescription: String

A human-readable description of the error that’s suitable for output during debugging.

Describing Errors in a User Interface

static var errorDomain: String

The domain name for Create ML errors.

var localizedDescription: String

A localized, human-readable description of the error.

var errorCode: Int

The numeric code of this error.

var errorUserInfo: [String : Any]

A dictionary that provides additional information about the error.

var errorDescription: String?

A localized, human-readable description of the error and why it occurred, if applicable.

var failureReason: String?

A localized, human-readable reason behind the failure, if applicable.

var helpAnchor: String?

The help anchor for the error message in the user interface, if applicable.

var recoverySuggestion: String?

A localized, human-readable suggestion to address the failure, if applicable.