Protocol

CustomNSError

A specialized error that provides a domain, error code, and user-info dictionary.

Declaration

protocol CustomNSError

Topics

Instance Properties

var errorCode: Int

Required. Default implementations provided.

var errorUserInfo: [String : Any]

Required. Default implementation provided.

Type Properties

static var errorDomain: String

Required. Default implementation provided.

Relationships

Inherits From

Conforming Types

See Also

User-Relevant Errors

protocol Error

A type representing an error value that can be thrown.

class NSError

Information about an error condition including a domain, a domain-specific error code, and application-specific information.

protocol LocalizedError

A specialized error that provides localized messages describing the error and why it occurred.

protocol RecoverableError

A specialized error that may be recoverable by presenting several potential recovery options to the user.